© 1999-2048 dssz.net 粤ICP备11031372号
[其它] shell相关模块 subprocess模块
说明:系统管理模块 shutil模块 复制和移动 1.shutil.copyfileobj(fsrc,fdst[length]) 将类似文件的对象fsrc的内容复制到类似文件的对象fdst 2.shutil.copyfile(src,dst, *, follow_symlinks=True) 将名为src的文件的内容(无元数据)复制到名为dst的文件,然后返回dst # 练习 import shutil f1 = open('/etc/hosts', 'rb') f2 = open('/tmp/zhu<weixin_38635092> 上传 | 大小:107kb