输入一个十进制数,输出一个二进制串,怎么用Python编程???

2025-04-15 21:44:56
推荐回答(1个)
回答(1):

python3.x 及 python2.x均可运行:

n = int(input())
print(bin(n)[2:])