在使用Python时,会遇到需要调用其他py文件函数的情况,方法类似C++,方法如下 import example #包含example.py文件 example.func() #调用example.py中的func函数