摘要: 需求 写py程序时候总是碰到下面这种场景,动态生成对象或者函数: >>> def foo(): print "foo" >>> def bar(): print "bar" >>> func_list = ["foo","bar"] >>> for func in func_list: func() 阅读全文
posted @ 2022-04-05 19:26 wildkid1024 阅读(944) 评论(0) 推荐(0) 编辑