import os
os.system('shutdown /s /t 120')#设置在两分钟后关机
Python small exercise-8 windows shutdown
Guess you like
Origin blog.csdn.net/KathyLJQ/article/details/108968811
Ranking
import os
os.system('shutdown /s /t 120')#设置在两分钟后关机