🌈 搜索
📅  最后修改于: 2022-03-11 14:46:26.880000             🧑  作者: Mango
def is_power_of_two(number : int) -> bool: while number != 1: if number % 2: return False number /= 2 return True