2 Star 0 Fork 0

人工智能/python_study

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.py 126 Bytes
一键复制 编辑 原始数据 按行查看 历史
jack.win 提交于 2020-01-19 16:20 +08:00 . fastneo4j
import numpy
n=40000*10
x=numpy.random.uniform(0,1,n)
y=numpy.random.uniform(0,1,n)
count=sum(x*x+y*y<1)
print((count/n)*4)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/thinkofai/python_study.git
git@gitee.com:thinkofai/python_study.git
thinkofai
python_study
python_study
master

搜索帮助