Commit b5d671d0 by BellCodeEditor

auto save

parent 07ef43ed
Showing with 8 additions and 0 deletions
z=['苹果','香蕉']
a=['西瓜']
z.insert(2,'西瓜') #insert在指定位置插入数据
z.insert(-1,'西瓜')
z.append('西瓜') #append在最末尾插入数据
z.extend(a) #extend将括号当中的列表插入z列表最末尾
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