ruby - 字符串操作,填满0 : rjust fill with zero

访问量: 2884

"33".to_s.rjust(5, "0")   # =>   00033

订阅/RSS Feed

Subscribe