在psutil.sensors\u temperatures()生成的列表中获取值

2024-09-28 03:18:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在psutil.sensors_temperatures()生成的列表中获取一个值。如何在此列表中获得50.0值

list = [shwtemp(label='', current=50.0, high=103.0, critical=103.0)]

Tags: 列表currentlabellistpsutilhighsensorscritical
1条回答
网友
1楼 · 发布于 2024-09-28 03:18:24

我试过拉psutil产生的温度值。acptiz是字典中的一个列表

温度=(psutil.sensors\u temperatures().get('acpitz')[0][1])

相关问题 更多 >

    热门问题