发布时间:2019-09-23 17:06:55编辑:auto阅读(2133)
使用os
import os result = os.popen("ipconfig") print (result.read())
这种方式有返回值,因而使用起来较为方便
上一篇: 知名技术作家分享Python零基础教程!
下一篇: python中event事件应用举例
51748
51431
41842
38613
33109
30099
28772
23769
23681
22048
81°
2278°
2971°
2475°
2418°
3019°
2427°
3233°
5330°
5152°