Commit 53ccd70f by BellCodeEditor

save project

parent b464f90e
Showing with 11 additions and 5 deletions
...@@ -2,8 +2,14 @@ ...@@ -2,8 +2,14 @@
# b=["颜良","文丑"] # b=["颜良","文丑"]
# a.extend(b) # a.extend(b)
# print # print
a=["吕布"] # a=["吕布"]
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操',] # b=['袁术','公孙瓒','关羽','张飞','刘备','曹操',]
a.extend(b[2:5]) # a.extend(b[2:5])
print(a) # print(a)
# for i in range
students=["悟空","小贝","八戒","波奇"]
students.pop(2)
students.insert(1,"诺一")
red=students[0:2]
blue=students[2:4]
print(red,blue)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment