Python第二十天 shutil 模块 zipfile tarfile 模块

数据库65

Python第二十天 shutil 模块 zipfile tarfile 模块

注意:压缩打包/解压解包目录和文件使用tarfile模块而不要使用shutil 模块!!!

os文件的操作还应该包含移动 复制 打包 压缩 解压等操作,这些os模块都没有提供

shutil 模块也是封装的os模块

```

shutil 模块的源码

import os
import sys

'bytes' paths are not properly supported: they don't work with all functions,

sometimes they only work partially (broken exception messages), and the test

cases don't use them.

from typing import (

输入验证码查看隐藏内容

扫描二维码关注本站微信公众号 Johngo学长
或者在微信里搜索 Johngo学长
回复 svip 获取验证码
wechat Johngo学长