var age: Int? = 10
age = 20
age = nil
var age1 : Optional<Int> = Optional.some(10)
age1 = Optional.some(20)
age1 = Optional.none
var age: Int? = 10
age = 20
age = nil
var age1 : Optional<Int> = Optional.some(10)
age1 = Optional.some(20)
age1 = Optional.none
本文标题:可选类型的本质
本文链接:https://www.haomeiwen.com/subject/oqferrtx.html
网友评论