很简单: 创建一个port.bat的文件,让它去传递参数并调用modify.py文件 @echo off echo Modifying port... python modify.py 10808 echo Success! pause 1. 2. 3. 4. 5.