1、相同字符串str,重复打印n次。 str=str*n 2、填充字符串str为指定宽度n,左边填充0。 str.zfill(n) 转载于:https://www.cnblogs.com/lindsay-chh/p/4919530.html