Commit f445a6e2 by BellCodeEditor

auto save

parent 1257e159
Showing with 3 additions and 3 deletions
for i in range(1,12,3): for i in range(1,12,3):
print(i,end=' ') print(i,end='\n')
\ No newline at end of file
a=['吕布'] a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操'] b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
c=b[2:5] # 取出刘关张 列表c c=b[2:5] # 取出刘关张 列表c
a.extend(cd) # 将列表c加入列表a a.extend(c) # 将列表c加入列表a
print(a) print(a)
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