美文网首页
切片下标

切片下标

作者: anthonydan | 来源:发表于2020-03-18 14:05 被阅读0次

    var x = []int{2:5,6,0:7}

    func main() {
    fmt.Println(x)
    }

    结果:
    [7 0 5 6]

    相关文章

      网友评论

          本文标题:切片下标

          本文链接:https://www.haomeiwen.com/subject/nqgqyhtx.html