Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以秒为单位获得 cpu 利用率。我用
psutil.cpu_percent(1)
它有效,但我发现结果与top.
top
为什么会发生这种情况,哪一个是真正的 cpu 利用率?非常感谢!