标签: swift compiler-errors if-case
let age = 25 if case 18...35 = age where age >= 21 { print ("In Cool Demographic and of drinking age") }
在Swift中,当我输入上面的代码时,它在“where”之前说,“w”下面有一条红线,它说:
预期','加入多条款条件的部分
有没有办法解决/解决这个问题?