#当前模块为主函数时,执行if后语句 if __name__ == '__main__'
Python的搜索路径
import sys sys.path
添加搜索路径
sys.path.append(pah_to_location)