init(repeating:count:)
let str = String(repeating: "测试", count: 10) print(str) //测试测试测试测试测试测试测试测试测试测试 复制代码