import threadingimport timeimport osimport datetimeimport utilsimport requests# 基础参数hour = 10 # 抢券时间点time_str = ftimestrftimeY-m-d 95959cwd = ospathdirnameospathrealpath__file__week = strtimestrftime
由于线程是并发执行的,当多个线程同时请求同一个接口时,可能会导致接口响应时间变慢,从而导致线程延迟高的问题。此外,如果请求次数和间隔时间设置不合理,也可能导致线程延迟高的问题。
原文地址: https://www.cveoy.top/t/topic/cZxs 著作权归作者所有。请勿转载和采集!