摘要: 解题思路: 代码: class Solution: def myPow(self, x: float, n: int) -> float: if x == 0: return 0 res = 1 if n < 0: x, n = 1 / x, -n while n: if n & 1: res *= 阅读全文
posted @ 2021-04-28 09:02 米开朗菠萝 阅读(43) 评论(0) 推荐(0)