第二种办法比较常用:   %02d

  print '%02d' % 11

posted on 2018-12-17 15:17  巨象  阅读(349)  评论(0)    收藏  举报