擅长:python、mysql、java
<p>您可以从命令行实用程序<a href="http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man8/sysctl.8.html" rel="nofollow noreferrer">^{<cd1>}</a>和<a href="http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/vm_stat.1.html" rel="nofollow noreferrer">^{<cd2>}</a>(以及<code>ps</code>,如<a href="https://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python">this question</a>)获取大量系统信息</p>
<p>如果找不到更好的方法,可以使用<a href="http://docs.python.org/library/subprocess.html" rel="nofollow noreferrer">^{<cd4>}</a>调用这些方法。在</p>