主页
Python
Python getattr() 函数
demo_ref_getattr
运行 ❯
×
更改方向
保存代码
更改主题
class Person: name = "John" age = 36 country = "Norway" x = getattr(Person, 'age') print(x)
36