python 經驗: from x import * 影響全局變量使用

最近寫 python 程序, 發現一個比較 trick 的地方html a.pypython PWD = None def func1(): global PWD PWD="pwd" print "PWD in func1 is: " + PWD b.py函數 from a import * func1() print "PWD after call func1() i
相關文章
相關標籤/搜索