摘要:
打包目录 1 #_*_coding:utf-8_*_ 2 #__author__ = "csy" 3 import shutil 4 5 shutil.make_archive("test","zip","D:/5") #生成文件名test,格式zip,目录路径 另外也可以用zipfile模块,指定 阅读全文
posted @ 2017-07-23 18:49
csy113
阅读(358)
评论(0)
推荐(0)
摘要:
复制目录(包含子目录、文件),例子中被复制目录要和调用shutil模块的python文件在同一层 1 #_*_coding:utf-8_*_ 2 #__author__ = "csy" 3 import shutil 4 5 shutil.copytree("atm","new_atm") 删除目录 阅读全文
posted @ 2017-07-23 17:03
csy113
阅读(521)
评论(0)
推荐(0)
浙公网安备 33010602011771号