使用for循环打印出字典包含的国家,结果只打印了3个国家,为啥,怎么打全?
top3river ={
'nile':'Tanzania',
'nile':'Burundi',
'nile':'Rwanda',
'nile':'Uganda',
'nile':'Sultan',
'nile':'Egypte',
'Amazon River':'Peru',
'Amazon River':'Brazil',
'Yangtze River':'China'
}
for river,country in top3river.items():
print('The ' + river.title() + ' runs through '
+ country.title() + '.')
for name in top3river.keys():
print("The river's name is " + name +'.')
for country in top3river.values():
print(country)