0
是否有可能在字典中迭代列表?看起來像一個複雜的語法。爲什麼在這本詞典中有一個循環?
URLS = ['http://www.foxnews.com/',
'http://www.cnn.com/',
'http://europe.wsj.com/',
'http://www.bbc.co.uk/',
'http://some-made-up-domain.com/']
future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}