import sys #查看路径设置情况 sys.path #增加自己程序的目录 sys.path.append(“/root/python”) 转载于:https://blog.51cto.com/devops/667022