go

意外的切片追加行为

英文: unexpected slice append behaviour 问题 我今天在Go代码中遇到了奇怪的行为:当我在循环中将elements追加到slice中,然后尝试根据循环的结果创建新的s...