Simplify the declarations of the Python code.

This commit is contained in:
krahets
2023-05-22 22:03:57 +08:00
parent 081b76d620
commit e196962d0a
27 changed files with 88 additions and 87 deletions

View File

@ -430,12 +430,12 @@
```python title="list.py"
# 通过索引遍历列表
count: int = 0
count = 0
for i in range(len(list)):
count += 1
# 直接遍历列表元素
count: int = 0
count = 0
for n in list:
count += 1
```