摘要: f = open(r"d:/test.txt",'a')#类似于append追加,不修改原来的数据,新增内容,但是不能读data = open(r"d:/test.txt",'w')#写 ,不能读文件f.write('\nhello')f.read()print(f)f.close() #关闭文件d 阅读全文
posted @ 2019-11-12 11:45 ripple醋包 阅读(84) 评论(0) 推荐(0) 编辑