In [1]: a = [0, 1, 4, 3] In [2]: b = [3, 5, 4, 2] In [3]: c = dict(zip(a, b)) In [4]: c Out[4]: {0: 3, 1: 5, 3: 2, 4: 4} In [5]:
上代码。。。。
时间: 2024-11-07 14:28:19
In [1]: a = [0, 1, 4, 3] In [2]: b = [3, 5, 4, 2] In [3]: c = dict(zip(a, b)) In [4]: c Out[4]: {0: 3, 1: 5, 3: 2, 4: 4} In [5]:
上代码。。。。