摘要: 1.文件操作初识文件路径:D:/xx.txt编码方式:utf-8,gbk,GB2312操作方式:只读,只写,写读,读写,追加等。f=open('f:\联系方式.txt',encoding='utf-8',mode='r')content=f.read()print(content)f.close() 阅读全文
posted @ 2020-05-30 16:30 菜鸟鸭 阅读(154) 评论(0) 推荐(0)