python获取cpu温度_Python如何读取CPU和GPU的温度?

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

到第三步报的错 @MaterialFan

Traceback (most recent call last):

File "", line 1, in

ret_instance = wmi_instance.query("Select * From MSAcpi_ThermalZoneTemperature")

File "C:\Python33\lib\site-packages\wmi.py", line 1009, in query

return [ _wmi_object (obj, instance_of, fields) for obj in self._raw_query(wql) ]

File "C:\Python33\lib\site-packages\wmi.py", line 1009, in

return [ _wmi_object (obj, instance_of, fields) for obj in self._raw_query(wql) ]

File "C:\Python33\lib\site-packages\win32com\client\dynamic.py", line 247, in __getitem__

return self._get_good_object_(self._enum_.__getitem__(index))

File "C:\Python33\lib\site-packages\win32com\client\util.py", line 37, in __getitem__

return self.__GetIndex(index)

File "C:\Python33\lib\site-packages\win32com\client\util.py", line 53, in __GetIndex

result = self._oleobj_.Next(1)

pywintypes.com_error: (-2147217396, 'OLE error 0x8004100c', None, None)

你可能感兴趣的:(python获取cpu温度)