>>> psutilcpu_times()
scputimes(user=396146, nice=169729, system=2150659, idle=16900540, iowait=62959, irq=00, softirq=1942, steal=00, guest=0, nice=00)
>>>
>>> for x in range(3):
psutilcpu_percent(interval=1)
40
59
38
>>>
>>> for x in range(3):
psutilcpu_percent(interval=1, percpu=True)
[40, 69, 37, 92]
[70, 85, 24, 21]
[12, 90, 99, 72]
>>>
>>>
>>> for x in range(3):
psutilcpu_times_percent(interval=1, percpu=False)
scputimes(user=15, nice=00, system=05, idle=965, iowait=15, irq=00, softirq=00, steal=00, guest=00, guest_nice=00)
scputimes(user=10, nice=00, system=00, idle=990, iowait=00, irq=00, softirq=00, steal=00, guest=00, guest_nice=00)
scputimes(user=20, nice=00, system=00, idle=980, iowait=00, irq=00, softirq=00, steal=00, guest=00, guest_nice=00)
>>>
>>> psutilcpu_count()
4
>>> psutilcpu_count(logical=False)
2
>>>1、如果你导出信息时选导出格式是Excel,但你电脑未安装Excel,就会出现这个提示的。
2、如果你的电脑已安装Excel,还出现这个提示,说明你的Excel有问题或者你使用的是绿色单文件版的Excel。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)