ruby个位数左侧自动补0

2011-03-03  刘俊 

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

登录 后发表评论