字符串 | 列表 | 元组 | |
---|---|---|---|
所用符号 | " " | [] | () |
增 | .join() | .append() .insert() .extend() | 不能 |
删 | .split() .strip() | .pop() .remove() del .clear() | del |
改 | .replace(,) | 索引改 | 不能 |
查 | .find().index() | 元素、索引、枚举 | 元素、索引、枚举 |
类型 | str | list | tuple |
字符串元组列表比较
最新推荐文章于 2022-07-28 21:36:48 发布
字符串 | 列表 | 元组 | |
---|---|---|---|
所用符号 | " " | [] | () |
增 | .join() | .append() .insert() .extend() | 不能 |
删 | .split() .strip() | .pop() .remove() del .clear() | del |
改 | .replace(,) | 索引改 | 不能 |
查 | .find().index() | 元素、索引、枚举 | 元素、索引、枚举 |
类型 | str | list | tuple |