字符串,列表,元组异同
字符串,列表,元组都属于序列
列表可变,元组和字符串不可变
三者都能进行拼接(数据类型相同),重复,索引切片 /|字符串|列表|元组 :-?:-?:-?:-: 符号|’’ “” ‘’’ “”"|[]|() 特点|不可变有序|可变有序|不可变有序 拼接|str1+str2|list1+list2|tuple1+tuple2 重复|*n|*n|*n 索引|str[index]|list[index]|tuple[index] 切片|[:]|[:]|[:] 增|jion生成新的字符串|append,extend,inser| 删|del(总的)、strip、lstrip、rstrip|del、pop、clear、remove|del(总的) 改|replace、索引|list[index]=value| 查|find、index、rindex、索引等|index、索引|index、索引 遍历|元素、索引、枚举|元素、索引、枚举|元素、索引、枚举