首页 > 代码库 > operator is not a known binary operator swift 语法错误笔记

operator is not a known binary operator swift 语法错误笔记

operator is not a known binary operator swift 语法错误笔记

error: operator is not a known binary operator

for x in 1..10

 版本更新,开区间  改为 “..<”



var arr = String[]()

array types are now written with the brackets around the element type 


版本更新,改为var arr:[String] = [String]()


operator is not a known binary operator swift 语法错误笔记