我在 Windows 32 位和 Python 中使用 wmi 库获得 CPU 温度,但我认为与 Core Temp 的结果相比它是错误的

I am getting CPU temperature using wmi library in Windows 32-bit with Python but I think it's false when compared with the results of Core Temp

我使用 wmi 库通过以下代码不断获得值 30.85°。这是我的代码:

import wmi

w = wmi.WMI(namespace=r'root\wmi')

temp = w.MSAcpi_ThermalZoneTemperature()[0].CurrentTemperature

kelvin = temp / 10
celsius = kelvin - 273.15
fahrenheit = (9/5) * celsius + 32

print(f'Kalvin:{kelvin:^10.2f}\tCelsius:{celsius:^10.2f}\tFahrenheit:{fahrenheit:^10.2f}')

结果如下:

Kalvin:  304.00     Celsius:  30.85     Fahrenheit:  87.53   

我还想指出,除非我重新启动我的笔记本电脑,或者等待大约 30 分钟后,这个值不会改变。

最后,这是 Core Temp 1.15.1 中显示的不断变化的结果。

你能帮我解释一下吗?

在读取 wim documentation and on the following thread 时,我没有获取 CPU 的当前温度,而是从主板的其他地方获取。