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

作者: ggirls (哥)   2019-03-14 13:36:12
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__?完全無法想像。可以指點一下嗎?
作者: ThxThx (洗洗睡)   2019-03-14 14:32:00

Links booklink

Contact Us: admin [ a t ] ucptt.com