python多线程运行
for i in `seq 0 999`do
python sparcc/SparCC.py pvals/permutation_$i.txt -i 10 --cor_file=Bootstraps/perm_cor_$i.txt
done
想对这个python循环设置多线程运行,请教各位大佬!! https://fishc.com.cn/forum.php?mod=viewthread&tid=198695#pid5457640 可以用theading,具体参考楼上
你的代码没看懂~
看看是这样嘛?:
from threading import Thread
def func():
for i in range(999):
print(i)
t = Thread(target=func)
t.start()
页:
[1]