Commit 1953dfa0 by BellCodeEditor

auto save

parent 79353ebc
Pipeline #2200 failed in 0 seconds
Showing with 13 additions and 0 deletions
list=["张三","李四","王五","赵六"]
a=list[-3:-1]
print(a)
# 删除
# list.pop(2)
# list.remove("张三")
# 增加
# list.insert(1,"小明")
# list.append("小兰")
# c=["小红"]
# list.extend(c)
\ 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