题目4-a:定义一个函数实现整数的幂运算,用以计算 x 的 n 次方。相关知识点: 试题来源: 解析 def power(x,n): po=1 for i in range(n): po=po*x return po x = int(input()) n = int(input()) print(power(x,n)) 反馈 收藏