如何将"0“填充添加到字符串中,使字符串长度始终为4?
示例
If input "1", 3 padding is added = 0001 If input "25", 2 padding is added = 0025 If input "301", 1 padding is added = 0301 If input "4501", 0 padding is added = 4501
https://stackoverflow.com/questions/3122677
相似问题