Skip to content

Commit c25dcae

Browse files
committed
update intro
1 parent 8d68d99 commit c25dcae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
.idea/

introduction/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Python 中没有真的 heap 类,实现堆是使用 list 类配合 heapq 库中
8282

8383
## collections 库
8484

85-
Python 的 [collections 库](https://docs.python.org/3/library/collections.html)在刷题时会经常用到,它拓展了一些Python中基础的类,提供了更多功能,例如 defaultdict 可以预设字典中元素 value 的类型,自动提供初始化,Counter 可以直接统计元素出现个数等。
85+
Python 的 [collections 库](https://docs.python.org/3/library/collections.html)在刷题时会经常用到,它拓展了一些Python中基础的类,提供了更多功能,例如 defaultdict(不大写) 可以预设字典中元素 value 的类型,自动提供初始化,Counter(大写) 可以直接统计元素出现个数等。
8686

87-
Counter最基本的功能就是初始值为0的defaultdict
87+
Counter 最基本的功能就是初始值为0的defaultdict
8888

8989
## 总结
9090

0 commit comments

Comments
 (0)