Commit 8178fcb8 by BellCodeEditor

save project

parent 7a7403cb
Pipeline #10557 failed in 0 seconds
Showing with 13 additions and 0 deletions
students = ["悟空", "小贝", "八戒", "波奇"]
#删除
students.remove("八戒")
print(students)
#添加
students.append("诺依")
print(students)
#切片
red=students[2]
blue=students[2:]
print(red)
print(blue)
\ 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