Skip to content

Commit

Permalink
列表推导式元素加一
Browse files Browse the repository at this point in the history
  • Loading branch information
CanisMinor-1037 committed Jul 3, 2024
1 parent 7d6b64c commit 3915ae6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ch02/list_comprehensions_increment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
list = [1, 2, 3, 4, 5, 6]
print([x + 1 for x in list])

0 comments on commit 3915ae6

Please sign in to comment.