摘要: #文件的模式# 'r','w','a'w模式(write) 1 def write(): 2 fw = open('test.txt','w') #w写模式会覆盖数据,并且如果文件不存在就会创建该文件 3 fw.write('你好啊,世界') 4 fw.write('\n再见,蜘蛛侠sssw') # 阅读全文
posted @ 2020-08-16 01:57 搬砖在路上 阅读(128) 评论(0) 推荐(0) 编辑