@lunar
2016-08-26T07:26:58.000000Z
字数 223
阅读 1636
python
很奇怪的代码,可能是想体现函数式编程范式,用在pipeline里的话很容易操作管道,可以把需要的操作写在外部配置文件里。
def do_something_fun(paras)def do_something_wrong(paras)...tasks = ['do_something_fun','do_something_wrong',]for task in tasks:eval(task)(paras)
