直接做运算,不知道其他语言有没有坑,反正python是直接过的
# -*- coding:utf-8 -*- class Solution: def Power(self, base, exponent): # write code here return base**exponent