摘要: 1、通用文件copy工具实现 print("copy程序") src_file = input("初始源文件路径:>>>") copy_file = input("目标源文件路径:>>>") with open(r"{}".format(src_file),mode="rb") as f1,\ op 阅读全文
posted @ 2020-03-17 10:54 迎着阳光 阅读(77) 评论(0) 推荐(0) 编辑
摘要: t 模式: 读,写都以字符串为单位 文本文件 必须指定 encoding 格式 b 模式: 读,写都以直接为单位 针对所有文件 不必须指定 encoding 格式 t 模式和b 模式:: 文本文件使用t 模式 针对所有文件使用b 模式 #t模式读取文本 with open(r"aaa","rt",e 阅读全文
posted @ 2020-03-17 10:53 迎着阳光 阅读(117) 评论(0) 推荐(0) 编辑