pi
import os
import time
import datetime
while True:
print('当前时间:'+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
print('当前CPU温度 : ' + os.popen('vcgencmd measure_temp').readline().replace("temp=","").replace("'C\n",""))
time.sleep(60)