! m8 Y, H6 K7 M& A+ F 解决方案: / V, b) D/ X/ ^8 a( O
允许您初始化容量,允许您初始化值:. s' V1 a `6 l5 p- t
// Initializes a map with space for 15 items before reallocationm := make(map[string]int32,15)6 n. |1 t6 B4 n, c; C6 C6 v
对比4 K8 u$ R0 K' V# ~
// Initializes a map with an entry relating the name "bob" to the number 5m := map[string]int{"bob": 5} + L+ q+ j- b e" p# _. J+ A# b7 O5 B