上QQ阅读APP看书,第一时间看更新
Concatenating strings and characters
Strings and characters can be concatenated as follows:
let string1 = "Hello"
let string2 = " Mr"
var welcome = string1+string2
var instruction = "Follow us please"
instruction += string2
let exclamationMark: Character = "!"
welcome.append(exclamationMark)