会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ayablog
博客园
园子
首页
新随笔
联系
管理
订阅
2022年10月13日
用python计算圆周率PI
摘要: #pi.pyimport randomimport timecount = 0start = time.perf_counter()for i in range(0,10**6): x = random.uniform(-1,1) y = random.uniform(-1,1) if (x*x +
阅读全文
posted @ 2022-10-13 12:51 Aya*=*
阅读(52)
评论(0)
推荐(0)
编辑
公告