18 lines
474 B
Python
18 lines
474 B
Python
import sys, subprocess
|
|
|
|
# 设定
|
|
if len(sys.argv) == 1:
|
|
# 如果什么都没输入就输出
|
|
subprocess.run("help.exe", check=True)
|
|
|
|
if len(sys.argv) > 1:
|
|
command = sys.argv[1]
|
|
|
|
if command == "help":
|
|
subprocess.run("help.exe", check=True)
|
|
elif command == "jm":
|
|
subprocess.run("Download.exe", check=True)
|
|
elif command == "version":
|
|
subprocess.run("version.exe", check=True)
|
|
else:
|
|
print(f"未知的命令: {command}") |