Compare commits
1 Commits
gh-pages
...
Ch-Type_Ca
| Author | SHA1 | Date | |
|---|---|---|---|
| dd3f97e1ae |
@ -141,7 +141,7 @@ Swift 为不确定类型提供了两种特殊的类型别名:
|
||||
这里有个示例,使用 `Any` 类型来和混合的不同类型一起工作,包括函数类型和非类类型。它创建了一个可以存储 `Any` 类型的数组 `things`:
|
||||
|
||||
```swift
|
||||
var things = [Any]()
|
||||
var things: [Any] = []
|
||||
|
||||
things.append(0)
|
||||
things.append(0.0)
|
||||
|
||||
Reference in New Issue
Block a user