简单类型 / 字符串

// Empty string literal
let someEmptyString = ""
// Initializer syntax
let anotherEmptyString = String()

if someEmptyString.isEmpty {
    print("some string is empty")
}

if anotherEmptyString.isEmpty {
    print("another string is empty")
}