import os os.system(command="python demo.py") 等价于 打开cmd,运行 python demo.py 转载于:https://www.cnblogs.com/ystwyfe/p/7601981.html