Commit 91dbd8cf by BellCodeEditor

save project

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