Commit 91dbd8cf by BellCodeEditor

save project

parent 4fbfbc7c
Showing with 6 additions and 8 deletions
bros=["刘备","关羽","张飞"]
bros[0]="关羽"
bros[1]="刘备"
bros.pop(1)
bros.insert(1,'小包')
bros.append('小关')
b=["小李","小马","小高"]
bros.extend(b)
bros=['关羽', '小包', '张飞', '小关', '小李', '小马', '小高']
print(bros[3:5])
print(bros[-4:-2])
print(bros[3:-2])
print(bros[-4:5])
print(bros)
\ 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