Tag: 可选值
All the articles with the tag "可选值".
-
Swift 进阶【三】可选值
Published date:Swift 中可选值的定义如下 因为 是枚举类型,所以有的时候可以用模式匹配来进行一些巧妙的操作: * 使用 if case 来进行模式匹配,对非 nil 的值做 for 循环
All the articles with the tag "可选值".
Swift 中可选值的定义如下 因为 是枚举类型,所以有的时候可以用模式匹配来进行一些巧妙的操作: * 使用 if case 来进行模式匹配,对非 nil 的值做 for 循环