摘要: 3. 数据结构 3.1. 列表的更多特性 list.append(x) 在列表的末尾添加一个元素。相当于a[len(a):] = [x]。 list.extend(iterable) 使用可迭代对象中的所有元素来扩展列表。相当于 a[len(a):] = iterable。 list.insert( 阅读全文
posted @ 2021-07-19 17:45 1ink 阅读(106) 评论(0) 推荐(0) 编辑