Gxlsystem TIY Editor
Gxlsystem 在线教程
改变方向
暗黑模式
python_ref_setattr.py:
class Person: name = "Bill" age = 63 country = "USA" setattr(Person, 'age', 64) # The age property will now have the value: 40 x = getattr(Person, 'age') print(x)