首页 > 代码库 > python 包与模块

python 包与模块

1. 打印Python当前模块的搜索路径

import sys

print (sys.path)

 

[‘D:\\work_bonc\\Python_WorkSpace\\deep learning\\TF‘,
‘D:\\work_bonc\\Python_WorkSpace‘,
‘C:\\Python35-64\\python35.zip‘,
‘C:\\Python35-64\\DLLs‘,
‘C:\\Python35-64\\lib‘,
‘C:\\Python35-64‘,
‘C:\\Python35-64\\lib\\site-packages‘]

 

后续遇到相关问题,继续追加。

python 包与模块