是否可以在地圖的鍵中包含 OR 運(yùn)算符?例如。走:var a = map[string]int{ "A1"|| "B1": 1, "A2": 2,}錯(cuò)誤:invalid operation: "A1" || "B1" (operator || not defined on string)
- 1 回答
- 0 關(guān)注
- 213 瀏覽
添加回答
舉報(bào)
0/150
提交
取消