为什么这样不行?请问如何不用items表示?
>>> d = {'Alice': [50, 61, 66], 'Bob': [80, 61, 66], 'Candy': [88, 75, 90]}
>>> for key in d:
... value=d[key]
... print(key,value)
>>> d = {'Alice': [50, 61, 66], 'Bob': [80, 61, 66], 'Candy': [88, 75, 90]}
>>> for key in d:
... value=d[key]
... print(key,value)
2020-09-25
举报