摘要:
import pygameimport sysimport random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 50, 50) se 阅读全文
posted @ 2023-12-18 21:24
易安wwt
阅读(44)
评论(0)
推荐(0)
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)) 阅读全文