摘要: 蒙特卡洛方法求Π python import random count = 0 for i in range(1000000): x, y = random.random(), random.random() dist = pow(x 2 + y 2, 0.5) if dist 阅读全文
posted @ 2019-07-17 17:34 豆瓣酱瓣豆 阅读(831) 评论(0) 推荐(0) 编辑