Python:将键添加到每个列表项,然后转换为字典

use*_*652 2 python dictionary list

lst = [1,2,3,4]
Run Code Online (Sandbox Code Playgroud)

我有硬编码键 ['one','two','three','four','five']

我希望字典像

{'one':1, 'two':2, 'three':3, 'four':4, 'five':None}
Run Code Online (Sandbox Code Playgroud)

键总是多于列表中的项目数.

mou*_*uad 9

import itertools

lst = [1,2,3,4]
lst2 = ['one','two','three','four','five']

print dict(itertools.izip_longest(lst2, lst, fillvalue=None))
# {'five': None, 'four': 4, 'one': 1, 'three': 3, 'two': 2}
Run Code Online (Sandbox Code Playgroud)