Repository navigation
Commit bc8bb45
committed
fix: 第 4 章字典方法表改为 Python 3 的实际行为
dict.values()、dict.items() 在 Python 3 中返回视图而不是列表;popitem() 自 3.7 起
按后进先出返回最后加入的一对键和值,而不是随机返回。1 parent 343acc0 commit bc8bb45
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments