我不确定这是正确的行为还是无意的。我设置了StealthFighter,以便它返回一个名为ammunition的类类型计算属性变量。但是如果我创建并实例化myStealthFighter,然后尝试访问实例上的类属性,我会得到错误:'StealthFighter' does not have a member named 'ammunition'我找不到任何提到这一点的地方,我假设类属性只能通过<
./1.swift:10:11: error: use of instance member 'thisIsmyFunction' on type 'myScript'; did you mean tomyScript.thisIsmyFunction()下面是我的代码:import Foundation func thisIsmyFunction() {