magicians = ['ergou','qiqi','shitou']
great_magicians = []
def make_great(magicians,great_magicians):
while magicians:
magician = magicians.pop()
great_magician = 'the Great' + magician
great_magicians.append(great_magician)
def show_magicianslis(great_magicians):
for name in great_magicians:
print(name)
......................
阅读全部 | 2021年7月6日 21:32
def milk_album(name,album_name,number=''):
album = {'name':name,'album_name':album_name}
return album
while True:
print("(enter 'q' at any time to quit)")
name = input("请输入歌手名:")
if name == 'q':
break
album_name = input("请输入专辑名:")
if album_name == 'q':
break
print(milk_album(name,album_name))
阅读全部 | 2021年7月6日 21:29
places = {}
polling_active = True
while polling_active:
name = input("\n What is your name? ")
response = input("If you could visit one place in the world, where would you go?")
places[name] = response
repeat = input("Would you like to let another person respond? (yes/ no) ")
if repeat == 'no':
polling_active = False
print("\n--- Poll Results ---")
......................
阅读全部 | 2021年7月6日 21:20