Commit 42213543 by BellCodeEditor

save project

parent 991459ec
Showing with 10 additions and 5 deletions
message = "诺依,周末一起去看动漫展吧!"
students = ['悟空','小贝','八戒','波奇']
students.remove('八戒')
print(students)
# 请对message进行遍历,取出所有元素
for i in message:
print(i)
\ No newline at end of file
students.extend('诺伊')
print(students)
red=students[:2]
blue=students[2:]
print(red)
print(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