仙人掌的博客

喜欢与世无争的清静


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

  • 留言板

  • 搜索

菜鸟Python(5)

发表于 2017-08-07 | 分类于 Python | 阅读次数

电影网站

阅读全文 »

菜鸟Python(4)

发表于 2017-08-07 | 分类于 Python | 阅读次数

不敬语查询

1
2
3
4
5
6
7
8
9
# 定义一个读取的方法
def read_text():
# 调用 open 内置函数打开文件
quotes = open("E:\ButterKnife.txt")
# 读取文件
contents_of_file=quotes.read()
print(contents_of_file)
quotes.close()
read_text()
阅读全文 »

菜鸟Python(3)

发表于 2017-07-28 | 分类于 Python | 阅读次数

使用类-发送消息

实现结果:通过 twilio 实现给手机发送短信

下载 twilio

进入 cmd 命令窗口,选择其中一个

  1. easy_install twilio
  2. pip install twilio
    阅读全文 »

菜鸟Python(2)

发表于 2017-07-27 | 分类于 Python | 阅读次数

Python 中的类

前面使用到的函数都是直接调用函数,比如 webbrowser.open() 或 time.ctime() 这些通过调用函数来进行操作,今天我们使用 turtle 来介绍 Python 中的类

阅读全文 »

菜鸟Android(1)

发表于 2017-07-15 | 分类于 Android | 阅读次数

日志

在应用中记录信息,选用的日志级别

  1. ERROR 出现在程序崩溃或结束,用于记录明显的错误
  2. WARN 不会出现崩溃,但会记录提示性警告
  3. INFO 提示文本类消息
  4. DEBUG
  5. VERBOSE
  6. WTF what a Terrible Failure 提示永远不可能发生的错误
    (强制设备停止,并输出调试报告)
    阅读全文 »
1…101112…14
didiaoyuan

didiaoyuan

68 日志
15 分类
24 标签
RSS
GitHub Weibo
Creative Commons
© 2017 didiaoyuan