Not sure exactly what you wanted, but I think this might be it?
def print_formatted(number):
fstr = '{{:{}d}} {{:>{}}} {{:>{}}} {{:>{}}}'.format(len(str(number+1)),len(oct(number+1)),len(hex(number+1)),len(bin(number+1)))
for i in range(1,number+1):
a=oct(i)
b=hex(i)
c=bin(i)
d=a.replace("0o","")
e=b.replace("0x","")
f=c.replace("0b","")
print(fstr.format(i, d, e, f))
if __name__ == '__main__':
n = int(input())
print_formatted(n)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…