扔骰子
摘要:把一个骰子扔n次, n次朝上一面的点数和为s。 输入n, 打印出s的所有可能的值出现的概率。 1 from decimal import Decimal 2 3 def get_dice(): 4 # 一个骰子扔n次 5 times = input('please input an integer\
阅读全文
posted @ 2017-04-24 20:29
雁驰万里却作禽,鱼未得水空有鳞。 花开花落花不语,昨是昨非昨亦今。
posted @ 2017-04-24 20:29
posted @ 2017-04-11 20:32