摘要: 要求能算到小数点后面越多越好 pi = 0 N = 100 for 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("圆周率值是 阅读全文
posted @ 2021-10-17 10:43 龙尧 阅读(53) 评论(0) 推荐(0) 编辑