考虑以下代码。
var a:Int? a? = 10 print(a)
这里变量 a 没有被赋值为 10。如果是因为 '?' 运算符,为什么编译器不显示编译错误?。
optional swift
optional ×1
swift ×1