摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- #CalHamlet.py def getText(): txt = open("install.sh", "r").read() #读取整个文件 txt = txt.lower() #大写全部转成小写 for ch in '!"\'.,#... 阅读全文
posted @ 2017-11-15 15:56 hayden__wang 阅读(414) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- #利用字典将两个通讯录文本合并为一个文本 def main(): ftele2=open('TeleAddressBook.txt','rb') ftele1=open('EmailAddressBook.txt','rb') ftele1.readl... 阅读全文
posted @ 2017-11-15 13:45 hayden__wang 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Python 文档资源 #注释 文件中的文档 dir函数 对象中可用属性的列表 文档字符串:__doc__ 附加在对象上的文件中的文档 PyDoc:help函数 对象的交互帮助 PyDoc:HTML报表 浏览器中的模块文档 标准手册 正式的语言和库的说明 网站资源 在线教程、例子等 出版的书籍 商业 阅读全文
posted @ 2017-11-15 11:32 hayden__wang 阅读(334) 评论(0) 推荐(0) 编辑