新手求教一个关于slice的问题

wumier · 2017-11-02 13:36:04 · 1819 次点击

哦哦,这个样子。那这种情况应该如何处理呢?我想不出什么改的方法。

#9
更多评论

试试 result = append(result, []int{stack})

#1

报错了额。。。cannot use stack (type []int) as type int in array or slice literal

#2