Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用shutil.make_archive,但出现“找不到模块”错误。
shutil.make_archive
然后我尝试使用 Python 2.7 并且成功了。
包含该模块和函数的最低 Python 版本是什么?
来自shutil doc,make_archive是 2.7 版中的新内容。
make_archive
shutil 至少早于 2.3。make_archive 是 2.7 中的新功能。医生
Python 2.7 是最早包含make_archive在shutils. shutils一般至少从 2.0 开始就存在。
shutils