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

  print '%02d' % 11

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