摘要: panic: 1.报告致命错误的一种方式,如:数组访问越界,空指针引用等。2.panic异常发生时,程序会中断运行。 import "fmt" func testa() { fmt.Println("aaaaaaaaa") } func testb(i int) { fmt.Println("bbb 阅读全文
posted @ 2019-11-10 23:01 指尖上的生产者 阅读(1277) 评论(0) 推荐(0) 编辑