# 随机数获取

c={'a':1,'b':2}
print(random.sample(c.keys(),1))
print(c[random.sample(c.keys(),1)[0]])
1
2
3