mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
[Typo] Fix multiple typos from 07.6 to 08.2
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
测试 map1 中是否存在 key1:
|
||||
|
||||
在例子 8.1 中,我们已经见过可以使用 `val1 = map1[key1]` `的方法获取 key1 对应的值 val1。如果 map 中不存在 key1,val1 就是一个值类型的空值。
|
||||
在例子 8.1 中,我们已经见过可以使用 `val1 = map1[key1]` 的方法获取 key1 对应的值 val1。如果 map 中不存在 key1,val1 就是一个值类型的空值。
|
||||
|
||||
这就会给我们带来困惑了:现在我们没法区分到底是 key1 不存在还是它对应的 value 就是空值。
|
||||
|
||||
|
Reference in New Issue
Block a user