在这里插入代码片
```active=True
list={}
while active:
name=input('What is your name? ')
mountain=input('Which mountain would you like to climb someday? ')
repeat=input('Would you like to let another person respond? (yes/ no) ')
if repeat=='no':
active=False
list[name]=mountain
for name,mountain in list.items():
print(name +' would like to climb '+mountain +'someday.')
DAY11 又一篇,记一个比较综合自己认真写的程序
最新推荐文章于 2022-03-25 16:45:24 发布