import sys
#查看路径设置情况

sys.path

#增加自己程序的目录

sys.path.append(“/root/python”)