目前xcode 9.2 下支持的写法应该是这样的:var allZeros = [Int] (repeatElement(0, count: 5))
2017-12-27
本节课的所有代码的swift4版本在波波老师的官方GitHub上都有更新:https://github.com/liuyubobobo/Play-with-Swift-3。大家可以去看一看。
2017-12-02
swift 3.0 中 reetings.range(of: StringProtocol) 里面的参数应该怎么传啊?
2017-11-18