如果不想使用exec,那么可以使用eval(),它描述为 eval(expression[, globals[, locals]]). 参数是Unicode或Latin-1编码的字符串和可选的全局参数和局部变量。
確定! 回上一頁