在ruby中如果我有一个对象obj,使用一个名为funcname的方法,我可以使用以下语法obj.send(funcname)调用该方法
python中有类似的东西吗?
我想这样做的原因是,我有一个switch语句,我在其中设置了funcname,并希望在switch语句的末尾调用它.
python send
python ×1
send ×1