[关闭]
@contribute 2016-09-08T08:19:04.000000Z 字数 960 阅读 1082

python的搜索路径

python


假设一个名为spam的模块被导入。
则python解释器的搜索路径:interpreter首先从built-in模块中搜索其名字spam。如果没有找到,则在sys.path中查找。而sys.path由以下位置初始化:

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注