📅  最后修改于: 2022-03-11 14:59:11.195000             🧑  作者: Mango
import sys
import subprocess
def main():
if len(sys.argv) == 1:
path = sys.argv[0]
subprocess.run(['/path/to/my.exe', path])
else:
print('Usage myscript.py ')
if __name__ == "__main__":
main()