This commit is contained in:
krahets
2023-08-06 23:19:07 +08:00
parent fafdebb75c
commit 48adefba25
8 changed files with 136 additions and 33 deletions

View File

@@ -87,7 +87,7 @@ comments: true
```python title="stack.py"
# 初始化栈
# Python 没有内置的栈类,可以把 List 当作栈来使用
stack: List[int] = []
stack: list[int] = []
# 元素入栈
stack.append(1)