序列概念: 序列的成员有序排列,可以通过下标访问到一个或几个元素,就类似与c语言的数组. 序列的通用的操作: 1:索引 11 = [1,2,3,4] 11[0] = 1 2:切片 11[1,2,3,4] 11[1:2] = 2,3 3:加法 11 = [1,2,3,4],12 = [5,6,7,8] 11 + 12 = [1,2,3,4,5,6,7,8] 4:乘法 11 = [1,2,3,4] 11 *3 = [1,2,3,4,1,2,3,4,1,2,3,4] 5:in(判断某个元素是否在序列内…