D3 = dict(zip(keys, values)) >>> D3 {'a': 1, 'b': 2, 'c': 3}. Python 3.x introduced dictionary comprehension, and we'll see how it handles the similar case.
確定! 回上一頁