This commit is contained in:
krahets
2023-08-06 23:19:37 +08:00
parent c14ca74b8b
commit 4bc6b8af7b
8 changed files with 25 additions and 26 deletions

View File

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