安装psutil模块
pip2 install psutil
#encoding=utf-8 import psutil print psutil.cpu_times() print psutil.disk_partitions() print psutil.virtual_memory()
http://www.cnblogs.com/xiao1/p/6164204.html