Commit 7f7cc060 by BellCodeEditor

save project

parent 987e6d85
Showing with 9 additions and 7 deletions
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉'] a=["华雄"]
list.remove("香蕉") a.insert(1,"关羽")
print(list) print(a)
list.pop(2) a.append("颜良")
list.pop(3) print(a)
print(list) b=["张飞","刘备"]
\ No newline at end of file a.extend(b)
print(a)
\ 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