📜  string.format swift 代码示例

📅  最后修改于: 2022-03-11 15:01:01.742000             🧑  作者: Mango

代码示例1
let str = String(format:"%d, %f, %ld", INT_VALUE, FLOAT_VALUE, DOUBLE_VALUE)

let str = "\(INT_VALUE), \(FLOAT_VALUE), \(DOUBLE_VALUE)"