来自net / http的源代码。的定义http.Header是map[string][]string。正确的?但是为什么要go run在下面的代码中得到结果:02个func main() { var header = make(http.Header) header.Add("hello", "world") header.Add("hello", "anotherworld") var t = []string {"a", "b"} fmt.Printf("%d\n", len(header["hello"])) fmt.Print(len(t))}
2 回答
- 2 回答
- 0 关注
- 165 浏览
添加回答
举报
0/150
提交
取消