摘要:
import time from selenium.webdriver import Edge from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys # 键盘输入 # 1 阅读全文
摘要:
import csv import time from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor import requests # 存储文件 f = open('data.csv', mode='w', en 阅读全文
摘要:
from multiprocessing import Process def task(name): for i in range(10000): print(f"{name}:",i) if __name__ == '__main__': p = Process(target=task,args 阅读全文
摘要:
# 线程类 from threading import Thread def func(): for i in range(1000): print("func", 1) if __name__ == '__main__': t = Thread(target=func) # 创建线程并给线程安排任 阅读全文