ruby个位数左侧自动补0

2014-07-18  刘俊 

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

登录 后发表评论