斯蒂芬大帝
示例代码如下(在线测试):package mainimport "fmt"func UsingArray(a [6]int) { fmt.Println(a)}func UsingArray2(a []int) { fmt.Println(a)}func main() { primes := [6]int{2, 3, 5, 7, 11, 13} UsingArray(primes) evens := []int{2, 4, 6, 8, 10, 12} // will fail since [6]int isn't []int // UsingArray(evens) UsingArray2(evens)}