Skip to content

Commit cd69659

Browse files
committed
提交示例代码
1 parent c9ee414 commit cd69659

File tree

1 file changed

+9
-0
lines changed
  • xuanyuanyulong/2020-10-20-abuse-of-list-comprehension

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
l1 = [n for n in range(10)]
2+
3+
l2 = list(range(10))
4+
5+
print(l1)
6+
7+
print(l2)
8+
9+
print(l1 == l2)

0 commit comments

Comments
 (0)