Skip to content

Commit

Permalink
Fix: typo in for-and-while-statement.md (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckrnx09 committed Jul 4, 2024
1 parent ad9be9f commit 3c16b9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for el in numbers:
:::tip 在循环中获取元素索引
Python 中的内置函数 `enumerate()` 用于枚举可迭代对象,它返回一个包含索引和项本身的元组。
```python
for index,el of enumerate(my_list):
for index,el in enumerate(my_list):
...
```
:::
Expand Down

0 comments on commit 3c16b9e

Please sign in to comment.