import random
l = ['iPhone','iPad','iMac']
name = []
while l:
user = input('请输入姓名:')
if user not in name:
name.append(user)
jiang = random.choice(l)
l.remove(jiang)
print('恭喜获得{}'.format(jiang))
print('奖池剩余{}'.format(len(l)))
continue
else:
print('您已参与,欢迎下次光临!')
break
else:
print('奖品池为{},期待下次光临!'.format(len(l)))
~