python切片器方法

slice indices must be integers or None or have an __index__ method 内置列表切片器方法 适用于列表、元祖和字符串。字典和集合自己无序,无索引,不能使用切片器app [start:end:step]#从位置start开始,步长step,一直取到end-1。即取头不取尾code [::-1] step为负数表逆序切索引 mlist=['
相关文章
相关标签/搜索