摘要: 1.1 读取整个文件 我们可以创建一个 test.txt 并写入一些内容,使用 Python 读文件操作,读出文本内容。 1 with open(r'E:\test.txt') as file_object: 2 contents = file_object.read() 3 print(conte 阅读全文
posted @ 2019-07-11 10:39 孔胡子 阅读(498) 评论(0) 推荐(0) 编辑