executor.map() TypeError: zip 参数 #2 必须支持迭代
当我运行它时,刚刚生成 TypeError: zip argument #2 must support iteration。谁能帮我解决这个问题?
import time, concurrent.futures
lst100=[i for i in range(100)]
t1=time.clock()
print(list(map(str,lst100)))
t2=time.clock()
print(t2-t1)
t3=time.clock()
with concurrent.futures.ThreadPoolExecutor(max_workers=100) as executor:
future_to_url = executor.map(str,lst100, 60)
print(list(future_to_url))
t4=time.clock()
print(t4-t3)