python导入自定义模块

发布时间:2019-08-28 09:09:04编辑:auto阅读(1437)

    >>> 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


关键字