第十七十八章 (#833)

Co-authored-by: Joe Chen <jc@unknwon.io>
This commit is contained in:
Haigang Zhou
2022-05-19 19:57:23 +08:00
committed by GitHub
parent 72bc74ab95
commit fa1cfcc67f
12 changed files with 66 additions and 67 deletions

View File

@@ -14,13 +14,11 @@ for key, value := range map1 {
2如何在一个映射中检测键 `key1` 是否存在:
`val1, isPresent = map1[key1]`
`val1, isPresent = map1[key1]`
返回值:键 `key1` 对应的值或者 `0``true` 或者 `false`
3如何在映射中删除一个键
返回值:键 `key1` 对应的值或者 `0``true` 或者 `false`
`delete(map1, key1)`
3如何在映射中删除一个键`delete(map1, key1)`
## 链接