a = A() a.x
对于 a.x
a.x
a
x
__getattribute__
__getattr__
参考: https://stackoverflow.com/questions/4295678/understanding-the-difference-between-getattr-and-getattribute