摘要: 传送门官方文件地址list.append(x):将x加入列表尾部,等价于a[len(a):] = [x] 例:>>> list1=[1,2,3,4]>>> list1.append(5)>>> list1[1, 2, 3, 4, 5]list.extend(L)将列表L中的元素加入list中,等价于... 阅读全文
posted @ 2014-09-17 16:38 ivyxjc 阅读(312) 评论(0) 推荐(0) 编辑