37,718
社区成员
发帖
与我相关
我的任务
分享
river = {
'nile' : 'egypt',
'yangtze' : 'china',
'YellowRiver' : 'china'
}
for country in river.values():
print(country.title())
for name in river.keys():
print(name.title())
for river,country in river.items():
print(end='The {} run through '.format(river))
print(country )
river = {
'nile' : 'egypt',
'yangtze' : 'china',
'YellowRiver' : 'china'
}
for country in river.values():
print(country.title())
for river, country in river.items():
print(end='The {} run through '.format(river))
print(country)
for name in river.keys():
print(name.title())