摘要: #文件读取path=r'D:\Python学习\day1\a.txt'f=open(path,encoding='utf-8')print(f)txt=f.read()print(txt)f.close()#文件写入# path=r'D:\Python学习\day1\a.txt'# f=open(p 阅读全文
posted @ 2022-05-24 02:13 人生信条~~ 阅读(30) 评论(0) 推荐(0) 编辑