为什要n-1?为什么要s = s*x
def power(x, n): s = 1 while n > 0: n = n - 1 s = s * x return s
为什要n-1?为什么要s = s*x?
实在想不明白,求救啊 5555555555555555
def power(x, n): s = 1 while n > 0: n = n - 1 s = s * x return s
为什要n-1?为什么要s = s*x?
实在想不明白,求救啊 5555555555555555
2018-09-17
举报