2018年5月17日

第七篇 系统读写文件操作

摘要: 1 #读写文件 2 #Windows上使用倒斜杠\ OSX和linux上使用正斜杠/ 3 4 #(1)字符串链接 os.path.join 5 import os 6 myFiles = ['accounts.txt','details.csv','invite.docx'] 7 for myFile in myFiles: 8 print(os.path.join('... 阅读全文

posted @ 2018-05-17 21:38 骑驴追车 阅读(190) 评论(0) 推荐(0) 编辑

导航