摘要: 什么是文件: 文件是操作系统提供给用户/应用程序操作硬盘的一种虚拟的概念/接口 为什么要用文件 所写的程序可以通过文件将数据永久保留到硬盘上 打开文件路径问题: # windows路径分隔符问题 # 路径:C:\nb\c\d.txt # 解决方案一:推荐 # open(r'C:\nb\c\d.txt 阅读全文
posted @ 2020-03-13 18:39 耗油炒白菜 阅读(429) 评论(0) 推荐(0)
摘要: #一:今日作业:#1、编写文件copy工具 src_file_path=input("请输入原文件路径:>>>").strip() des_file_path=input("请输入拷贝文件路径:>>>").strip() with open(r"{}".format(src_file_path)," 阅读全文
posted @ 2020-03-13 17:34 耗油炒白菜 阅读(205) 评论(0) 推荐(0)