# proxy_list 代理列表 run_times = 100000 for i in range(run_times): for item in proxy_list: proxies = { 'http': item, 'https': item, } print(proxies) try: requests.get('目标网站', proxies=proxies, timeout=1) print('ok') except: continue