标签:格式化 .net 函数 例子 方法 soft sof style att
http://www.jb51.net/article/67699.htm
http://www.runoob.com/python/att-string-format.html
数字的字段宽度和精度表示方法基本不变,字符串的字段宽度和精度参照上面那个链接,下面是一个例子
>>> ‘{0:.5s}‘.format(‘guido van rossum‘)
‘guido van rossum‘
标签:格式化 .net 函数 例子 方法 soft sof style att
原文地址:http://www.cnblogs.com/lindaxin/p/7871962.html