var optionalString: String? = "facial";
var greeting = "hi";
if let name = optionalString { //把optionalString复制给一个临时变量 name. 可以判断optionalString是否有值,
greeting = greeting + " (name)" ;
}
print(greeting);