count = 1 lst = [] lst1 = [] while count <=10: name = input("请输入您心仪的女生(您还可以输入%s个):" % (11-count)) lst.append(name) count = count +1 print("您当前心仪的女生有:") for i in lst: print("编号: %s,名字:%s" % (lst.index(i)+1,i)) print("请输入你更喜欢的三个女人的编号:") count1 = 1 while count1 <4: number = input("请输入第%s个美眉的编号:" % count1) lst1.append(number) count1 = count1 +1 print("更喜欢的新鲜出炉:") for j in lst1: print("编号:%s名字:%s" % (lst1.index(j)+1,lst[int(j)-1])) print("最后了,三选一") last_number = int(input("请输入你最新欢的人的编号:")) print("你最喜欢的是%s" %(lst[int(lst1[last_number-1])-1]))