最佳答案
我相信您使用的是 Swift 2.2,并且您使用的语法适用于 Swift 3。尝试:
print(a.startsWith(b))
关于arrays - swift 数组方法 "starts(with:)"导致类型 "Range<Int>"的值没有数字 "starts",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38515358/
最佳答案
我相信您使用的是 Swift 2.2,并且您使用的语法适用于 Swift 3。尝试:
print(a.startsWith(b))
关于arrays - swift 数组方法 "starts(with:)"导致类型 "Range<Int>"的值没有数字 "starts",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38515358/