Commit fae038ed by BellCodeEditor

auto save

parent 39bd0a2c
Showing with 18 additions and 0 deletions
a=['张三','李四','老五','王六','张七','赵八',]
a.pop(0)
a.pop(-5)
a.remove('老五')
print(a)
b=['陈九']
b.insert(1,'张三')
print(b)
b=['陈九']
c=['李四','老五']
b.extend(c)
print(a)
\ No newline at end of file
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
a.extend(b[2:5])
print(a)
\ No newline at end of file
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