s=“abcde” ljust() 左对齐,不满50位的数用0补充; s="abcde" print s.ljust(50,'0') rjust(),右对齐 center(),中间对齐 S.zfill(width) #把S变成width长,并在右对齐,不足部分用0补足