时间:2024-10-17 20:56:32
1、新建一个 Shutdown.py 文件,如图所示:
3、定义一个 shutdown() 函数,功能:多少分钟之后关机,如图所示:
5、使用 system() 函数实现关机功能,如图所示: