标签:bsp nbsp href lin plain 字符串 keyword highlight containe
1 2 3 4 5 | >>> ‘{0:.2f}‘ . format ( 1 / 3 ) ‘0.33‘ >>> ‘{0:b}‘ . format ( 10 ) #二进制‘1010‘ >>> ‘{0:o}‘ . format ( 10 ) #八进制‘12‘ >>> ‘{0:x}‘ . format ( 10 ) #16进制‘a‘ >>> ‘{:,}‘ . format ( 12369132698 ) #千分位格式化‘12,369,132,698‘ |
标签:bsp nbsp href lin plain 字符串 keyword highlight containe
原文地址:http://www.cnblogs.com/xiejunzhao/p/7182001.html