m='i am {} age {} '.format('tom','12') print(m)
。format 且要对应
m='i am {1} age {0} '.format('tom','12') print(m)
对应列表取值
二进制,16进制m='number: {:b},{:x}'.format(15,15) print(m)