摘要: 昨天的题不是不是很难,都会有自己的解法. class Solution(object): def countBits0(self, num: int): """暴力统计""" res = [] for i in range(num + 1): res.append(bin(i).count("1") 阅读全文
posted @ 2021-03-03 14:25 楠海 阅读(57) 评论(0) 推荐(0)