摘要: f = open('user.txt','r') #文件句柄 f1 = open('user.txt','w') #覆盖写入 f2 = open('user.txt','a') #追加到文件内容到末尾 with open('user.txt','r') as f: #自动关闭文件 pass #读写模 阅读全文
posted @ 2017-10-13 14:18 橙子味的萝卜 阅读(118) 评论(0) 推荐(0)