在一个源码中遇到这样一个海象表达式,但是这个要python3.8才支持,请问怎么改写为3.7支持的代码呢
_params_len = len(params)
_ip_proxys_len = len(ip_proxys)
with ThreadPoolExecutor(max_workers=max_workers) as t:
fs = [t.submit(sec_kill_task, miao_miao, params[i % _params_len],
None if not _ip_proxys_len else {
'http': None if (index := i % _ip_proxys_len) == 0 else ip_proxys[index]}) for i in
range(max_workers + 5)]