第一次发现Windows的正常运行时间是以重启作为清零标志的。
>>> datetime.datetime.fromtimestamp(psutil.boot_time()).strftime("%Y-%m-%d %H: %M: %S")
'2018-08-16 15: 10: 02'
重启前的运行时间忘了记了。。。
第一次发现Windows的正常运行时间是以重启作为清零标志的。
>>> datetime.datetime.fromtimestamp(psutil.boot_time()).strftime("%Y-%m-%d %H: %M: %S")
'2018-08-16 15: 10: 02'
重启前的运行时间忘了记了。。。