python calculator pi 2024-08-23 #!/bin/python import math def squre(n): #return n ** 2 return math.pow(n, 2) Sum=0 for i in range(1,100000000): Sum +=1/squre(i) print(math.sqrt(Sum*6)) 分类:操作系统 | 标签: | 相关日志