Fork me on GitHub
  2020年3月16日
摘要: #1、通用文件copy工具实现'''file1=input('文件路径: ').strip()file2=input('文件路径: ').strip()with open(r'{}'.format(file1),mode='rb') as f1,open(r'{}'.format(file2),mo 阅读全文
posted @ 2020-03-16 17:18 OBOS 阅读(162) 评论(0) 推荐(0)
摘要: x模式 '''x模式(控制文件操作的模式)-》了解 x, 只写模式【不可读;不存在则创建,存在则报错】''''''# with open('a.txt',mode='x',encoding='utf-8') as f:# pass# with open('c.txt',mode='x',encodi 阅读全文
posted @ 2020-03-16 15:34 OBOS 阅读(272) 评论(0) 推荐(0)