var b []int = []int{1, 2, 3, 4, 5} fmt.Printf("b[5]= %v \n", b[5]) //发生panic fmt.Printf("b[5:]=%v", b[5:]) //没有panic,打印空切片