Commit 1ed4a941 by BellCodeEditor

save project

parent f4ab1904
Showing with 5 additions and 2 deletions
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
c=b[1:5]
a.extend(c)
# c=b[1:5]
# a.extend(c)
for i in range(1,5):
a.append(b[i])
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