Skip to content

Commit c3e0f0e

Browse files
committed
Chien_list
1 parent b888254 commit c3e0f0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

3_for/Chien_list.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
list1 = ["a","b","c","d","e"]
2+
print(list1[0])
3+
print(list1[4])
4+
print(list1[1:4])
5+
list1.append("f")
6+
print(list1)
7+
list2 = list(range(5))
8+
list1.extend(list2)
9+
print(list1)

0 commit comments

Comments
 (0)