def do_foo():
print "foo!"
def do_bar():
print "bar!"
func_name1 = "do_foo"
func_name2 = "do_bar"
eval(func_name1)()
eval(func_name2)()
版权属于:wshon
本文链接:https://blog.wshon.com/2018/05/41.html
转载时须注明出处及本声明
def do_foo():
print "foo!"
def do_bar():
print "bar!"
func_name1 = "do_foo"
func_name2 = "do_bar"
eval(func_name1)()
eval(func_name2)()
版权属于:wshon
本文链接:https://blog.wshon.com/2018/05/41.html
转载时须注明出处及本声明
最新回复