Commit c1ecedf1 by BellCodeEditor

save project

parent 2a933939
Showing with 10 additions and 1 deletions
a=["刘备","关羽","张飞"] a=["袁术","公孙瓒","关羽","张飞","刘备","曹操"]
print(a[:]) print(a[:])
print(a[:4])
print(a[1:])
print(a[1:4])
\ No newline at end of file
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
a.extend(b[2:5])
print(a)
\ 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