Linux debian 查看CPU温度
需要软件 lm-sensors#
代码语言:javascript复制apt-get install lm-sensors -y
配置#
代码语言:javascript复制sensors-detect
一直 enter回车到最后
运行温度检查命令#
代码语言:javascript复制sensors
scores ={"小刘":45,"小红":68,"小米":96,"小白":65,"小梦":75} highest =max(scores.values()) lowest =min(scores.values()) average =sum(scores.values())/len(scores) # print("平均值为:" str(average)) max_keys =[k for k, x in scores.items()if not any(y > x for y in scores.values())]print('成绩最高的是:')for student in max_keys:print(student) min_keys =[k for k, x in scores.items()if not any(y < x for y in scores.values())]print('成绩最低的是:')for student in min_keys:print(student) personName =[k for k, v in scores.items()if v < average]print("低于平均值的学生:")for student in personName:print(student)