如何查看python的搜索路径

2025-04-07 18:05:20
推荐回答(1个)
回答1:

是问包和模块搜索路径吗?那个在sys.path里面

import sys
from pprint import pprint
pprint(sys.path)