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

访问量: 299

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

订阅/RSS Feed

Subscribe

分类/category