1、命令如下:

自定义命令 command = "python " + os.getcwd() + "/" + "test.py 参数1 参数2 ..."

执行命令 os.system(command)

# coding=utf-8

import os


if __name__ == "__main__":
  command = "python " + os.getcwd() + "/" + "appmain.py gate_1 config.json"
  os.system(command)

 

 posted on 2019-12-17 17:20  墨语i  阅读(2696)  评论(0)    收藏  举报