/**@H_502_2@
Range@H_502_2@
@H_502_2@
@H_502_2@区间运算符中@H_502_2@ 1...3 @H_502_2@包含@H_502_2@1@H_502_2@、@H_502_2@2@H_502_2@、@H_502_2@3@H_502_2@
1..<3 @H_502_2@包含@H_502_2@1@H_502_2@、@H_502_2@2@H_502_2@
*/@H_502_2@
@H_502_2@
@H_502_2@
@H_502_2@let@H_502_2@ range = @H_502_2@1@H_502_2@..<@H_502_2@3@H_502_2@
@H_502_2@
@H_502_2@
Cannot assign value of type 'Int' to type 'Range<Int>'@H_502_2@
*/@H_502_2@
// range = 8@H_502_2@
@H_502_2@
it will be removed in Swift 3. Use the '..<' operator.@H_502_2@
*/@H_502_2@
@H_502_2@let@H_502_2@ range1:@H_502_2@CountableRange@H_502_2@<@H_502_2@Int@H_502_2@> = (@H_502_2@0@H_502_2@ ..< @H_502_2@5@H_502_2@);@H_502_2@
@H_502_2@let@H_502_2@ range2 = @H_502_2@0@H_502_2@...@H_502_2@7@H_502_2@
@H_502_2@let@H_502_2@ range3 = @H_502_2@0@H_502_2@..<@H_502_2@7@H_502_2@
@H_502_2@
@H_502_2@
@H_502_2@
@H_502_2@print@H_502_2@(@H_502_2@"------->"@H_502_2@)@H_502_2@
@H_502_2@print@H_502_2@(range)@H_502_2@
@H_502_2@print@H_502_2@(range1)@H_502_2@
原文链接:https://www.f2er.com/swift/322491.html