今天,我检查了sys.path是如何由python实现的。我发现它指向sys.pi文件(windows中的python2.7.8)。见代码
argv = []
__stdout__ = file(__file__)
__name__ = 'sysoverride'
__stderr__ = file(__file__)
dllhandle = 0
exitfunc = None
stdin = file(__file__)
modules = {}
last_type = None
stderr = file(__file__)
path = []
last_value = None
hexversion = 17105408我的问题是python如何使用path=[]语句打印出python路径列表。我真的很困惑。谢谢
https://stackoverflow.com/questions/26903515
复制相似问题