mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
fix: fix a lot of incorrect links (#849)
This commit is contained in:
@@ -36,7 +36,7 @@ func main() {
|
||||
|
||||
如果原始 value 值不唯一那这么做肯定会出问题;这种情况下不会报错,但是当遇到不唯一的 key 时应当直接停止对调,且此时对调后的 `map` 很可能没有包含原 `map` 的所有键值对!一种解决方法就是仔细检查唯一性并且使用多值 `map`,比如使用 `map[int][]string` 类型。
|
||||
|
||||
**练习 8.2** [map_drinks.go](exercises\chapter_8\map_drinks.go)
|
||||
**练习 8.2** [map_drinks.go](exercises/chapter_8/map_drinks.go)
|
||||
|
||||
构造一个将英文饮料名映射为法语(或者任意你的母语)的集合;先打印所有的饮料,然后打印原名和翻译后的名字。接下来按照英文名排序后再打印出来。
|
||||
|
||||
|
Reference in New Issue
Block a user