python 多个相同字符串

1、相同字符串str,重复打印n次。   str=str*n

2、填充字符串str为指定宽度n,左边填充0。 str.zfill(n)

 

posted @ 2015-11-09 14:13  Lindsay_chh  阅读(2138)  评论(0编辑  收藏  举报