from math import isqrt, sqrtnumber = 100result = sqrt(number)# result is 10.0# 整数平方根,向下取整root = isqrt(99)# root is 9# sqrt(-1) 引发 ValueError,而不是 NaNprint(f"{result = }")print(f"{root = }")