我想申请getattr()python内置函数,可以吗?(参考)
getattr()
例如:
getattr(???, 'abs')
我知道我可以简单地做:
>>> abs <built-in function abs>
但我想使用getattr,因为关键字名称是字符串。
getattr
python keyword built-in getattr python-3.x
built-in ×1
getattr ×1
keyword ×1
python ×1
python-3.x ×1