Commit 34def604 by BellCodeEditor

save project

parent 22aaf012
Showing with 10 additions and 5 deletions
b=['华雄']
b=['袁术','夏侯惇','曹操','关羽'] b.insert(1,'关羽')
b.remove('关羽') #或者使用b.append('关羽')
#b.pop(3)
#b.pop(-1)
print(b) print(b)
a=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
print(a[:])
print(a[:4])
print(a[1:])
print(a[1:4])
\ 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