【python】调用另一个python

方法1:Python自带模块函数os.system() 

os.system("python button1.py")
os.system("python 程序名称.py")

方法2:引用,同时把另一个程序函数化

import button1
button1.aaa()   

 方法3:

from SAP_SELECT import *
Excel_W_Tpnum(SAP_sql_select(SQL_Select_201))
#直接用里面的函数就可以了

 

posted on 2020-03-27 14:54  dandanduba  阅读(628)  评论(0编辑  收藏  举报

导航