ruby - 格式化数字 , format number leading 0

访问量: 300

参考

https://stackoverflow.com/questions/1543171/how-can-i-output-leading-zeros-in-ruby

"%010d" % 223

0000000223

订阅/RSS Feed

Subscribe

分类/category