摘要: (1) os.system# 仅仅在一个子终端运行系统命令,而不能获取命令执行后的返回信息system(command) -> exit_statusExecute the command (a string) in a subshell.# 如果再命令行下执行,结果直接打印出来1 >>> os.s... 阅读全文
posted @ 2015-06-21 15:52 Dus 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env Python 2 from __future__ import print_function 3 from collections import OrderedDict 4 import pprint 5 6 def CPUinfo(): 7 8 '... 阅读全文
posted @ 2015-06-21 12:10 Dus 阅读(1214) 评论(0) 推荐(0) 编辑