2019-07-13 18:14发布 生成海报
def my_sqrt(x, error=0.00000000000000001): g = 1 while abs(g ** 2 - x) >= error: g = (g + x / g) / 2 return g print(my_sqrt(1000000000000))