编写一个python脚本,输出你想要去的地方。
place = {}
active = True
while active:
name = input("\nWhat is your name? ")
visit = input("If you could visit one place in the world, where would you go? ")
place[name] = visit
repeat = input("Would you like to let another person respond?(yes/no) ")
if repeat == 'no':
active = False
print("\n--- Poll Results ---")
for name,visit in place.items():
print(name + " could like to visit " + visit + ".")
print()
本文介绍了一款使用Python编写的简单应用,该应用能够收集并展示用户最想去的旅行地点。通过输入姓名和梦想目的地,应用将这些信息存储起来,并在最后呈现所有人的旅行愿望清单。
3万+

被折叠的 条评论
为什么被折叠?



