📜  python 按字符串名称设置属性 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:43.852000             🧑  作者: Mango

代码示例1
setattr(some_object, 'some_attribute', 42)