为不可修改的元组tuple增加内容 元组tuple,本身是不可修改的,那么增加或者插入内容,实际上是另外新建了一个元组 temp = (1, 2, 3, 4 ,5) new1 = temp[:3] + (8, 9) + temp[3:] View Code 这就是元组的切片