中国大学MOOC: 定义函数如下:defmy_power(x,n=2):s=1whilen>0:n-=1s=s*xreturns分别对该函数传递参数,调用my_power(-3)和my_power(3, 3)后运行结果分别是什么?
中国大学MOOC: 定义函数如下:defmy_power(x,n=2):s=1whilen>0:n-=1s=s*xreturns分别对该函数传递参数,调用my_power(-3)和my_power(3, 3)后运行结果分别是什么?
1