且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Swift中将数字与字符串连接起来

更新时间:2023-01-18 08:35:39

如果你想把一个数字放在一个字符串中,你可以使用 字符串插值:

If you want to put a number inside a string, you can just use String Interpolation:

return "first \(myVariable)"