Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import os
>>> os.system('notepad')
0
>>> os.system('pip')
2
>>> os.system('regist')
1
>>> os.system('dxdiag')
0
>>>
本文介绍了Python2.7.3环境下系统命令的使用方法,包括notepad、pip、regist和dxdiag等命令的调用及返回状态码解析。

被折叠的 条评论
为什么被折叠?



