ruby个位数左侧自动补0

2012-08-17  刘俊 

15.times do |i|
  puts sprintf("%02d",i)
end
691°/6916 人阅读/0 条评论 发表评论

登录 后发表评论