用python计算圆周率PI
摘要:
PI = 0N = 100for k in range(N):PI += 1 / pow(16,k) * (4 / (8 * k + 1) - 2 / (8 * k + 4) -1 / (8 * k + 5) - 1 / (8 * k + 6)) print("圆周率值是:{}".format(pi 阅读全文
posted @ 2021-10-16 21:15 蓝螃蟹Karry0921 阅读(100) 评论(0) 推荐(0) 编辑