运维网's Archiver
论坛
›
Python
› python shutil.copytree()
websyhg
发表于 2017-4-22 07:05:57
python shutil.copytree()
copy 目录
#!/usr/bin/python
import os
import shutil
s_path=r'C:\a\b'
t_path=r'D:\c'
shutil.copytree(os.path.join(s_path,r'hello'),os.path.join(t_path,r'hello'))
页:
[1]
查看完整版本:
python shutil.copytree()