Commit ccc69843 by BellCodeEditor

save project

parent 21317aa1
Showing with 14 additions and 2 deletions
...@@ -5,4 +5,16 @@ print(list) ...@@ -5,4 +5,16 @@ print(list)
list.append('香蕉') list.append('香蕉')
print(list) print(list)
list.pop(-1) list.pop(-1)
print(list) print(list)
\ No newline at end of file #[start]added by teacher
list1=['樱桃','菠萝']
list.append(list1)
print(list)
#list.pop(5)
#list.remove(list1)
list.remove(['樱桃', '菠萝'])
print(list)
list.pop(-1)
list.pop(-1)
print(list)
#[end]added by teacher
\ 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