Commit 03d749fb by BellCodeEditor

save project

parent 77928651
Showing with 18 additions and 0 deletions
b=['栗子','梨子','香蕉','黄瓜','香蕉','香蕉']
for i in range(3):
b.remove('香蕉')
print(b)
b=['曹操','夏侯惇','关羽']
b.pop(2)
print(b)
b=['曹操','夏侯惇','关羽']
b.pop(-1)
print(b)
\ No newline at end of file
a=['华雄']
b=['曹操','夏侯惇','关羽']
b.pop(2)
print(b)
\ 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