getattr
基本解釋
- n.獲取屬性(get attribute的縮寫(xiě))
英漢例句
- For targets which are attribute references, the initial value is retrieved with a getattr() and the result is assigned with a setattr().
除了在一條語(yǔ)句中賦值給元組和多個(gè)對(duì)象的情況,增量賦值語(yǔ)句所完成的賦值用與普通賦值同樣的方式処理。