首页 > python3没有commands模块了吗?

python3没有commands模块了吗?

如图,python3没有commands模块了吗?

Deprecated since version 2.6: The commands module has been removed in Python 3. Use the subprocess module instead.

= =||


https://docs.python.org/2/lib...
Deprecated since version 2.6: The commands module has been removed in Python 3. Use the subprocess module instead.


`来自官方文档的搬运工`


用执行单个命令用os.system()
比较简单。需要输入的字符也比较少。


不写的很清楚了吗用subprocess代替了

【热门文章】
【热门文章】