摘要: 先下载依赖 pip3 install psutil 代码 import psutil # 获取 CPU 温度 def get_cpu_temperature(): try: temperatures = psutil.sensors_temperatures() if 'coretemp' in t 阅读全文
posted @ 2024-02-08 23:27 _迷途 阅读(171) 评论(0) 推荐(0) 编辑