谁能告诉我为什么我会收到这个错误?我认为代码没有问题,当我替换**item
为Name,Start,End
我仍然无法让它工作
print("To finish input enter nothing.")
Schedule = []
Finish = False
while not Finish:
Name = input("What is the name of the show?: ")
Start = input("What time does the show start?: ")
End = input("What time does the show end?: ")
Schedule.append({'Name':Name, 'Start':Start, 'End':End})
print("{0:<10} | {1:<10} - {2:<10}".format(Name,Start,End))
print("{Name:<10} | {Start:<10} - {End:<10} ".format(**item))
if len(Name) == 0 or len(Start) == 0 or len(End) == 0:
Finish = True