01 格式化输出 1. 整数的输出 符号 说明 %o 八进制 %d 十进制 %x 十六进制 print('%o' % 20) # output:24 print('%d' % 20) # output:20 print('%x' % 20) # output:14 2. 浮点数的输出