python learning - built-in methods

1. getattr
When using the dot notation to get the attribute of the instance, if the attribute does not exist, the getattr method is automatically called

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325707657&siteId=291194637