首页 > 其他 > 详细

圆周率

时间:2020-03-30 09:55:17      阅读:64      评论:0      收藏:0      [点我收藏+]
import math
import time
s=10
t=time.process_time()
for i in range(s+1):
      a,b=***i,..*(s-i)
      c=(i/s)*100
      π=4*(4*math.atan(1/5)-math.atan(1/239))
print("%{:3}[{}->{}]".format(a,b,c))
time.sleep(0.1)
print(π)
print("{:.2f}s".format(t))

 

圆周率

原文:https://www.cnblogs.com/Glzt/p/12596423.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!