摘要:
shutil模块: 1. 拷贝文件1中的内容到文件2中 ~~~python shutil.copyfile("1.txt","3.txt") ~~~ 2. 拷贝权限: ~~~python shutil.copymode(文件1,文件2):之拷贝权限,内容组,用户,均不变。 ~~~ 3. shutil 阅读全文
posted @ 2020-04-27 00:37
彻底疯狂+100
阅读(194)
评论(0)
推荐(0)
摘要:
~~~python os.getcwd() 返回当前工作目录 os.chdir(path) 改变工作目录 os.listdir(path=dir_path) 列举指定目录中的文件名 os.mkdir(path) 创建建单层目录,如果该目录已存在则抛出异常 os.makedirs(path) 递归创建 阅读全文
posted @ 2020-04-27 00:25
彻底疯狂+100
阅读(285)
评论(0)
推荐(0)

浙公网安备 33010602011771号