import random
allList = [] #全部参与人员
a = ["",""] #幸运中奖人
while True:
name = input("请输入已转发用户?(输入-1结束) >>>")
if name == "-1":
break
zan = int(input("请输入" + name + "的点赞数? >>>"))
for i in range(zan):
print(i)
allList.append(name)
while a[0] == a[1]:
print(a) #方便查看a的值
a = random.sample(allList,2) #从用户中选取2名
print(a[0]) #方便查看
print(a[1])
print(a[0] + "和" + a[1] + "获奖")