擅长:python、mysql、java
<p>我个人认为psutil库对于监视系统上发生的所有事情很有意思:</p>
<p><a href="https://github.com/giampaolo/psutil" rel="nofollow noreferrer">https://github.com/giampaolo/psutil</a></p>
<p>此外,您还可以查看一下platform lib,它可以用来收集信息,猜猜是什么,platform,yes。</p>
<p><a href="https://docs.python.org/2/library/platform.html" rel="nofollow noreferrer">https://docs.python.org/2/library/platform.html</a></p>
<p>如果您在linux上,那么使用lspci和friends之类的系统命令来收集其他信息可能是一个解决方案。例如,请参见:<a href="http://www.commandlinefu.com/commands/using/lspci" rel="nofollow noreferrer">http://www.commandlinefu.com/commands/using/lspci</a></p>
<p>关于堆栈溢出还有一个类似的问题:<a href="https://stackoverflow.com/q/13867696/61903">Python, In linux obtain VGA specifications via lspci or HAL?</a></p>