您的当前位置:首页正文

一个python文件调用另一个python文件

来源:华拓网

一、相同文件夹

import a
a.test()

二、不同文件夹

import sys
sys.path.append('D:/')
import a
a.test()