将五个列表转化为一个字典,并且以第一个列表的值为键,剩下列表的值为值
时间: 2023-05-27 10:04:09 浏览: 66
zidianxu.rar_4 3 2 1
a = [1, 2, 3]
b = ['apple', 'banana', 'orange']
c = ['red', 'yellow', 'orange']
d = ['circle', 'square', 'triangle']
e = ['Monday', 'Tuesday', 'Wednesday']
my_dict = {}
for i in range(len(a)):
my_dict[a[i]] = (b[i], c[i], d[i], e[i])
print(my_dict)
阅读全文