1、求x的n次方
def power(x,n):
total = 1
for i in range(n):
total = total * x
return total
1、求x的n次方
def power(x,n):
total = 1
for i in range(n):
total = total * x
return total