Python 当然也不例外。 ... import math def mySqrt(x): # 求x的根,并向下取整,相当 ... 对于任意大于1的正整数x,它的平方根一定不大于x的一半。
確定! 回上一頁