摘要:
from gevent import monkeymonkey.patch_all()import geventimport requestsdef f1(url): print(f'GET:{url}') msg = requests.get(url) # 获取的是网站的数据长度 print(le 阅读全文
摘要:
# # 线程池# import time# from concurrent.futures import ThreadPoolExecutor## pool = ThreadPoolExecutor(15)### def task(n1):# time.sleep(1)# print(f'任务{n1 阅读全文
摘要:
import threadingfrom queue import Queue q = Queue() def porducer(i): """ 生产者 :param i: :return: """ print('产品:', i) info = {'to': '269', 'text': 'hell 阅读全文