多线程Threading和多进程Multiprocessing
一、多线程Threading
1、Threading分配python分批量在同一时间去做很多事情,减小了计算时间。
2、添加线程
# -*- coding: utf-8 -*-
import threading
def thread_job():
print ('this is an thread,number is %s'%threading.current_thread())
def ...
原创
2019-08-08 11:44:43 ·
197 阅读 ·
0 评论