正文

电脑关机脚本示例:Windows系统使用批处理(.bat): ``` @echo off shutdown /s /t 1 ``` Linux或macOS系统使用shell脚本(.sh): ```bash #!/bin/bash shutdown -h