标签:lam style bsp eva turn ret code pre div
sadfasdf
def test(a, b, func): result = func(a, b) return result strCommand = "lambda x,y:x+y" func_new = eval(strCommand) num = test(11, 22, func_new) print(num)
def test(a, b, func): result = func(a, b) return result strCommand = "lambda x,y:x+y" func_new = eval(strCommand) num = test(11, 22, func_new) print(num)
标签:lam style bsp eva turn ret code pre div
原文地址:http://www.cnblogs.com/noKing/p/7623915.html