import sys
for input in sys.stdin:
output = bin(int(input))
output = output[2:]
print(output)
何不試試f-string?from sys import stdinfor line in stdin:print(f'{int(line):b}')
何不試試f-string?from sys import stdinfor line in stdin:print(f'{int(line):b}')
f-str也很棒啊