复制代码
摘要: 环境:python2 f = open('d:\a.txt',encoding='utf-8',mode='r') content = f.read() print(content) f.close()第一个问题:TypeError: 'encoding' is an invalid keyword 阅读全文
posted @ 2020-02-05 13:51 BU羡 阅读(196) 评论(0) 推荐(0)