问题描述 python如何批量生产函数? 代码:def main_function(a): if a%3==0: print adef t1(): for a in range(0100): main_function(a)def t2(): for a in range(100200): main_function(a)def t3():def t4():.......pool=ThreadPool(20)pool.spawn(t1)pool.spawn(t2)......就是类似于这样的,怎