摘要: import randomS =20e6N = 0for i in range(int(S)):x = random.random()y = random.random()d = (x-0.5)**2+(y-0.5)**2if d<=0.5**2: N+=1else:passPI = 4*N/Spr 阅读全文
posted @ 2023-10-31 23:44 一只蜗牛hhhh 阅读(11) 评论(0) 推荐(0) 编辑