let mStr = String.init(format: "%02d", 5) // 输出 05 let floatStr = String.init(format: "%.2f", 5.3) // 输出 5.30
本文标题:格式化字符串
本文链接:https://www.haomeiwen.com/subject/bgqecktx.html
网友评论