摘要: python实验4 循环结构 1 import math 2 3 def estimate_pi(n): 4 total = 0 5 ret = 0 6 for i in range(n+1): 7 if i % 2 == 0: 8 sign = 1 9 else: 10 sign = -1 11 阅读全文
posted @ 2023-05-14 12:02 芜湖大厨师 阅读(1131) 评论(0) 推荐(0) 编辑