摘要: from random import randomimport mathimport timeDARTS=1000000hits=0.0for i in range(1,DARTS): x,y=random(),random() dist=math.sqrt(x**2+y**2) if dist<= 阅读全文
posted @ 2020-03-23 21:39 Lysim 阅读(96) 评论(0) 推荐(0)