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