摘要: 1:后定义的defer先执行(可以理解为栈的方式) // 222 // 111 func Test1(t *testing.T) { defer fmt.Println("111") defer fmt.Println("222") } 2:defer定义的函数的参数,在定义的时候已经被赋值了 // 阅读全文
posted @ 2020-11-27 18:47 老陈未老 阅读(50) 评论(0) 推荐(0) 编辑