2013-02-19 21 views

回答

5

像這樣的東西應該工作:

>>> width = 40 
>>> '{0:<{width}}'.format('aa', width=width) 
'aa          ' 
相關問題