ruby - 字符串操作,填满0 : rjust fill with zero 2018-03-16 17:16 访问量: 2884 "33".to_s.rjust(5, "0") # => 00033