Commit f5502b3b by BellCodeEditor

save project

parent 0db28b07
Showing with 13 additions and 0 deletions
fruit=["苹果","香蕉","梨"]
print(fruit[1])
fruit[2]="橙子"
#fruit.pop(1)
fruit.remove("苹果")
print(fruit)
fruit.append("桃子")
fruit.insert(0,"山竹")
print(fruit)
f2=["柠檬","榴莲","芒果","火龙果"]
fruit.extend(fruit2)
print(fruit[2:6])
\ 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