let index1 = arc4random_uniform(10);
let x = array[index1];
Run Code Online (Sandbox Code Playgroud)
第二行是给出以下错误
could not find an overload for 'subscript' that accepts the supplied argumentsRun Code Online (Sandbox Code Playgroud)let x = array[index1]; ^~~~~~~~~~~~~
swift ×1