Python 学习-pop()与remove()的使用

开始学习第一章-列表 书里的示例有pop()与remove()的使用使用,记录一些因使用不当报错的函数: 1. pop()-默认删除列表末尾的数据,但不可指定删除某一个数据,但可按位指定删除 array.pop([i]) Removes the item with the index i from the array and returns it. The optional argument de
相关文章
相关标签/搜索