python爬虫 threading 多线程 ThreadPoolExecutor线程池_threadpoolexecutor 和 threading_皓月盈江的博客-CSDN博客

网站介绍:文章浏览阅读923次。1.创建多线程,无参数main.py"""=== coding: UTF8 ==="""# 线程类from threading import Threadclass myThread(Thread): def run(self): # 当线程被执行的时候,被执行的就是run() for i in range(1000): print("子线程", i)"""========================================_threadpoolexecutor 和 threading