python---对齐

print '0123'.ljust(20, '-')
print '01234'.ljust(20, '-')
print '012356'.ljust(20, '-')
print '0123567'.ljust(20, '-')

 

posted @ 2014-11-14 20:50  helloweworld  阅读(314)  评论(0编辑  收藏  举报