等号两边数据类型不一致进行比较报错
Binary operator '==' cannot be applied to operands of type 'Int' and '[Int]'
这个提示也挺明确,二元运算符 == 两边不能使用 Int 和 [Int] 。
写代码时候粗心,拿 Int类型的变量和 [int] 类型的变量来比,一个整形数来和一个数组比,当然不能比。