摘要: 自己写的: class Solution: def findComplement(self, num: int) -> int: # 初始化一个空字符串,用于存储二进制表示 bin_str = '' # 将输入的数字转换为二进制表示,存储在 bin_str 中 while num > 0: bin_ 阅读全文
posted @ 2024-05-11 21:37 Junior_bond 阅读(1) 评论(0) 推荐(0) 编辑