摘要: r+,w+,a+ with open (r'D:\python_workspace\day8文件处理\test.txt','r+',encoding = 'utf-8') as f: print(f.readable()) #判断可读 True print(f.writable()) # 判断可写 阅读全文
posted @ 2019-07-08 20:53 大爷灰 阅读(157) 评论(0) 推荐(0) 编辑