为每个奖品设置不同的中奖概率,按照概率来抽取奖品。import randomprizes = {'iphone15': 0.01, 'airpods': 0.05, 'mechanicalkeyboard': 0.1, 'gamingmouse': 0.2, 'cup': 0.64}def lucky_draw():r = random.random() # 生成0到1之间的随机数cur = 0for prize, prob in prizes.items():cur += probif r <= cur:return prize模拟100个人抽奖draw_results = {}fo...