Python 系统资源信息获取CPU 和内存使用情况

 

 

In [6]: psutil.swap_memory()
Out[6]: sswap(total=23501340672, used=20144758784, free=3356581888, percent=85.7, sin=0, sout=0)

In [7]: psutil.cpu_percent(interval=None, percpu=False)
Out[7]: 32.8

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-01-07
  • 2021-12-02
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案