python 多个相同字符串

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

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

原文地址:https://www.cnblogs.com/lindsay-chh/p/4919530.html