一起攻克面试难关:Go面试每日一题

下面这段代码输出的内容:

1package main

import (
    "fmt"
)

func main() {
    defer_call()
}

func defer_call() {
    defer func() { fmt.Println("打印前") }()
    defer func() { fmt.Println("打印中") }()
    defer func() { fmt.Println("打印后") }()

    panic("触发异常")
}

答案以及解析会在下一篇文章中给出,鼓励大家在留言区留下答案!

2