体彩11选5的期望值!
#体彩11选5的期望值!def jc(x):
a = 1
for i in range(1,x+1):
a*=i
return a
def c(nn,mm):
return jc(nn)/(jc(nn-mm)*jc(mm))
t = 0
jg =
dgl = []
for i in range(0,4):
ii =int( c(5,5-i))
print(ii)
dgl.append(ii/462)
qwz = jg * dgl
print("任选{}的期望值是:{},也就是你花2元钱买任选{},可以赚{:.2f}元钱。".format(5-i,dgl,5-i,qwz-2))
欢迎为我国体育事业做贡献!!
页:
[1]