# -*- coding: cp936 -*-
import random
box=[['血瓶',50],['蓝瓶',50],['宠物',20]]
box_c=[]
jihe=sum([a[1] for a in box])
for x in range(len(box)):
temp = sum(a[1] for a in box[0:x+1])
box_c.append([box[x][0],temp])
print box_c
for i in range(10):
get=random.randrange(0,jihe+1)
for y in box_c:
if get<=y[1]:
print y[0]
break