//第一步: 创建一个 Scanner 的实例对象
let scan = NSScanner(string: code!)
//第二步: 定义一个可变的 UInt32 类型的变量用于接收
var result: UInt32 = 0
scan.scanHexInt(&result)
//第三步: -> 转换成一个Unicode
let unicode = UnicodeScalar(result)
//第四步: 把 unicode转换成 Character
let character = Character(unicode)
emoji = "\(character)"
let scan = NSScanner(string: code!)
//第二步: 定义一个可变的 UInt32 类型的变量用于接收
var result: UInt32 = 0
scan.scanHexInt(&result)
//第三步: -> 转换成一个Unicode
let unicode = UnicodeScalar(result)
//第四步: 把 unicode转换成 Character
let character = Character(unicode)
emoji = "\(character)"