python:实现十进制转二进制算法
def decimal_to_binary(num: int) -> str:
if isinstance(num, float):
raise TypeError("'float' object cannot be interpreted as an
def decimal_to_binary(num: int) -> str:
if isinstance(num, float):
raise TypeError("'float' object cannot be interpreted as an