this blog will emmory my work and process with the interesting skill
import random
time = int(input('硬币抛掷次数:'))
i=1
front = 0
while i <= time:
coin = random.randint(1,2)
if coin == 1 :
front +=1
probability = front/i
print(probability)
i+=1
近期在学概率学,写来随便玩玩