摘要:
import multiprocessing,time,osqq_numbers = ["511402865","260303838","1099276647","1490768397","729226162", "1164019076","569380213","923296994","33054 阅读全文
posted @ 2021-11-19 10:26
王王的王
阅读(31)
评论(0)
推荐(0)
摘要:
1、概念:资源的集合,如图片,文字等 进程大,线程小 2、特点: 任务分类: (1)io密集型:读写数据,对cpu没有很大工作量,只负责调度,适合多线程 (2)cpu密集型:需要计算的任务,如排序等,适用于多进程 import multiprocessingimport threadingimpor 阅读全文
posted @ 2021-11-19 10:26
王王的王
阅读(58)
评论(0)
推荐(0)
摘要:
#需要处理很多数据 #1000->30#最大多少数据,告诉线程池我有多少任务去处理from concurrent.futures import ThreadPoolExecutorimport requestsimport hashlibimport threadingdef down_pic(ur 阅读全文
posted @ 2021-11-19 10:21
王王的王
阅读(56)
评论(0)
推荐(0)

浙公网安备 33010602011771号