摘要: 基本读、写 r、a、w 方法1:open方法 file1 = open ("D:/文档.txt","r") # r为默认值读取模式也可以不写语法如下: print(file1.read) # 打印该文件 file1.close # 结束打印 file1 = open ("D:/文档.txt","w" 阅读全文
posted @ 2021-02-06 23:54 博主!你好 阅读(254) 评论(0) 推荐(0)