Commit e512c26b by BellCodeEditor

save project

parent cb3bef7e
Showing with 6 additions and 2 deletions
students=['悟空','小贝','八戒','波奇']
students.pop(-2)
sudents.name("八戒")
students.extend("诺依")
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