[英]python sys.path implementation
今天,我檢查了python如何實現sys.path。 我發現它指向sys.pi文件(Windows中的python 2.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路徑列表。 這讓我很困惑。 謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.