阅读背景:

str.format() - >如何左对齐

来源:互联网 
>>> print 'there are {0:10} students and {1:10} teachers'.format(scnt, tcnt)
there are        100 students and         20 teachers
>>> print 'there are {0:10} students and {1:10}



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: