Python 关闭电脑只要一句代码

import os

os.system('shutdown -s -f -t 59')
#运行后,系统显示 电脑将在一分钟后关闭

 

posted @ 2020-10-18 16:44  凹凸曼大人  阅读(796)  评论(0)    收藏  举报