2017年1月7日

python列表操作总结

摘要: list是python中非常重要的类型/数据结构,总结如下: 符号说明 l:列表 l2:新列表 e:元素 index:位置 方法: 原地修改: l.append(e) l.insert(index, e) e = l.pop([index]) l.extend(l2) l[len(l):] = l2 阅读全文

posted @ 2017-01-07 22:11 忧伤的南瓜 阅读(216) 评论(0) 推荐(0) 编辑

导航