字典的遍历

a = {'b':'boy','c':'cat','d':'dog'}
print(a)
for key,value in a.items():
print(f'\nKey:{key}')
print(f'Vaule:{value}')
posted @ 2021-01-07 10:28  发牌员鲍勃  阅读(106)  评论(0)    收藏  举报