Skip to content

Commit 67984ac

Browse files
authored
typo
1 parent 6cd22b0 commit 67984ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

md/159.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
```python
1515
def del_item(lst,e):
16-
return [lst.remove(i) for i in e if i==e] # NO!
16+
return [lst.remove(i) for i in lst if i==e] # NO!
1717
```
1818

1919
考虑删除这个序列[1,3,3,3,5]中的元素3,结果发现只删除其中两个:
@@ -31,4 +31,4 @@ def del_item(lst,e):
3131

3232
```
3333

34-
<center>[上一个例子](158.md) [下一个例子](160.md)</center>
34+
<center>[上一个例子](158.md) [下一个例子](160.md)</center>

0 commit comments

Comments
 (0)