def decimal_to_binary(n): return bin(n)[2:]
decimal_num = 10
binary_num = decimal_to_binary(decimal_num)
print(f"十进制数 {decimal_num} 转换为二进制数为 {binary_num}")