Back

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

发布时间: 2018-03-16 09:16:00

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

Back