Commit 7f7cc060 by BellCodeEditor

save project

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