摘要: 使用open函数创建文件对象, 然后就可以使用文件对象(file)常用的函数. 例: f = open('/path/to/targetfile/test.txt', mode='r', encoding='utf-8') open函数参数说明: 第一个位置: 文件名称 第二个位置: mode 值, 阅读全文
posted @ 2018-07-12 23:56 糖醋干豆腐 阅读(221) 评论(0) 推荐(0) 编辑