查看当前路径: import sys sys.path 添加需要导入的包所在的路径: sys.path.append("C:\\python3\\test") 查看是否添加 sys.path 然后用来直接导包就可以了