Offer prove safety [12]. Python integer power value achieved

Subject description
given integer is a double base type and floating-point type int exponent. Seeking exponent of the power base.

Ensure the base and exponent are not simultaneously 0

# -*- coding:utf-8 -*-
class Solution:
    def Power(self, base, exponent):
        # write code here
        return base**exponent
Published 99 original articles · won praise 6 · views 4002

Guess you like

Origin blog.csdn.net/weixin_42247922/article/details/103911433