http://www.jb51.net/article/63672.htm
推荐参考
>>> '{0},{1}'.format('hello','python')
'hello,python'
>>> '{0} {1}'.format('hello','python')
'hello python'
>>> 'your name:{name}'.format(name='tom')
'your name:tom'
>>> p=['',45]
>>> '{0[0]}{0[1]}'.format(p)
''
>>> "{:>10}".format('')
''
记住几个常用的用法就行,其余的要有个印象!