python导入自定义模块

2023-01-31 02:01:50 导入 模块 自定义
>>> import sys
>>> print sys.path
['', '/usr/lib64/python26.zip', '/usr/lib64/Python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages']
>>> sys.path.append('/home/test')
>>> import mymoudle


相关文章