首页 > 代码库 > swift 命名,字符串

swift 命名,字符串

命名:

let  numberOfDogs = 6 +2;

字符串连接: let finishedMessage = username + "xx" + password;

字符串打印值: let  food = "i like\(favoriteFood) because it is\(reason)"

<style>p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d12f1b } span.s1 { color: #bb2ca2 } span.s2 { color: #000000 } span.s3 { } span.s4 { color: #4f8187 }</style>

swift 命名,字符串