只需要将自己模块的路径添加到 os.path 中即可 sys.path.append( '$YourModulePath' ) 当然若有特殊需要,可以使用列表的 insert 方法将路径添加到开始,因为 Python 是从前往后找,找到就不再找了