Sep-01-2021, 05:21 PM
(Sep-01-2021, 04:49 PM)thunderspeed Wrote: I'm using the following:This is not enough info.
Just
[input]
in the map argument what do think this will do?If i should use
map()
in my code it could be done line this.if __name__ == '__main__': with concurrent.futures.ProcessPoolExecutor(max_workers=10) as executor: executor.map(image_down, [f'http://xkcd.com/{numb}/' for numb in range(1,200)])So now use list comprehension to make a list with url's.
I preferer
submit()
in first code.