print(oct(int(1234)).replace('0o','0')+' '+hex(int(1234)).upper())

	




1 oct 转为八进制,replace替换函数
2 hex转为十六进制,upper大写函数
3 int 十进制数