c++ 代码获取CPU温度
时间: 2023-02-28 22:10:20 浏览: 162
读取cpu温度
5星 · 资源好评率100%
```
import psutil
def get_cpu_temperature():
temperature = psutil.sensors_temperatures()['cpu-thermal'][0].current
return temperature
print(get_cpu_temperature())
```
阅读全文