题解 | #数学幂运算#
数学幂运算
https://www.nowcoder.com/practice/eeb02352695342caaa4d1df269c34f30
x=list(map(int,input().split())) #用map函数依次对列表中的字符串用int函数转化成数字,再用list函数转换成新列表 print(pow(x[0],x[1])) #用pow函数进幂运算 print(pow(x[1],x[0]))
数学幂运算
https://www.nowcoder.com/practice/eeb02352695342caaa4d1df269c34f30
x=list(map(int,input().split())) #用map函数依次对列表中的字符串用int函数转化成数字,再用list函数转换成新列表 print(pow(x[0],x[1])) #用pow函数进幂运算 print(pow(x[1],x[0]))
相关推荐