输出结果是加上了一个list 谁能点化我一下去掉中括号呢
d = {
'Alice': [45],
'Bob': [60],
'Candy': [75],
}
l = [[50, 61, 66],[80, 61, 66],[88, 75, 90]]
keys = d.keys()
for i in range(len(keys)):
d[keys[i]].append(l[i])
print(d)
d = {
'Alice': [45],
'Bob': [60],
'Candy': [75],
}
l = [[50, 61, 66],[80, 61, 66],[88, 75, 90]]
keys = d.keys()
for i in range(len(keys)):
d[keys[i]].append(l[i])
print(d)
2020-10-12
举报