We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9588d55 commit e457aafCopy full SHA for e457aaf
zh-tw/basics_data_structure/stack.md
@@ -14,11 +14,11 @@ import collections
14
stack = collections.deque()
15
```
16
17
-`list`作為最基本的`python`資料結構之一, 可以很輕松的實現`stack`。 如果需要更高效的`stack`, 建議使用`deque`。
+`list`作為最基本的`python`資料結構之一, 可以很輕鬆地實現`stack`。 如果需要更高效的`stack`, 建議使用`deque`。
18
19
#### Methods
20
21
-- `len(stack) != 0` - 判斷`stack`是否weikong
+- `len(stack) != 0` - 判斷`stack`是否為空
22
- `stack[-1]` - 取堆疊頂元素,不移除
23
- `pop()` - 移除堆疊頂元素並返回該元素
24
- `append(item)` - 向堆疊頂添加元素
0 commit comments