最佳答案
例如,我有一个 str 对象: menu = 'install'。我想从这个字符串运行安装方法。例如,当我调用 menu(some, arguments)时,它将调用 install(some, arguments)。有什么办法吗?