Commit 42f0ee8d by BellCodeEditor

save project

parent 6d7cd39a
Showing with 5 additions and 0 deletions
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
a=['吕布'] a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操'] b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
b[2:5] b[2:5]
print(b)
b[2:] b[2:]
print(b)
b[:5] b[:5]
print(b)
b[:] b[:]
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