Commit 08c28d78 by BellCodeEditor

save project

parent 9060da7f
Showing with 19 additions and 10 deletions
...@@ -11,3 +11,13 @@ bro3=["张飞",166,8.3] ...@@ -11,3 +11,13 @@ bro3=["张飞",166,8.3]
bros[0]="关羽" bros[0]="关羽"
bros[1]="刘备" bros[1]="刘备"
print(bros) print(bros)
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
list.remove('香蕉')
list.remove('香蕉')
list.remove('香蕉')
#list.pop(1)
#list.pop(3)
#list.pop(5)
#list.pop(1,3,5)
\ No newline at end of file
list=['苹果','香蕉','西瓜','香蕉'','桃子','香蕉'] a=['华雄']
list.remove('香蕉') a.append('颜良','文丑')
list.remove('香蕉') print(a)
list.remove('香蕉')
list.pop(1) #a=['华雄']
list.pop(3) #c=['颜良','文丑']
list.pop(5) #a.extend(c)
#print(a)
list.pop(1,3,5) \ No newline at end of file
\ 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