[問題] 手冊裡關於class的一句話,請教

看板Python作者 (哥)時間5年前 (2019/03/14 13:36), 5年前編輯推噓1(101)
留言2則, 1人參與, 5年前最新討論串1/1
http://bit.ly/2W4ss5t These references follow the normal rules for name resolution with an exception that unbound local variables are looked up in the global namespace. The namespace of the class definition becomes the attribute dictionary of the class. 最後一句話, 我讀起來,該class的namespace成為__dict__?完全無法想像。可以指點一下嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.137.113.238 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1552541775.A.3F5.html ※ 編輯: ggirls (223.137.113.238), 03/14/2019 13:37:52

03/14 14:32, 5年前 , 1F

03/14 14:33, 5年前 , 2F
我看起來是這個意思
03/14 14:33, 2F
文章代碼(AID): #1SYUXFFr (Python)