//一些Array声名 //m := [...]int{7:7}[3:] //m := [3]int{}[3:] //m := [14]int{4}[3:0] //m := [14]int{17:1} error array:beyond index //right way for dec slice //m := []int{4:5} m := [...]int{7:7}[3:] 执行上面的代码会产生错误:invalid operation [8]int literal[3:] (slice of unaddressable value),从其他语言来
萧十郎
梵蒂冈之花
相关分类