strTemp = 'hello'
tuple3 = tuple(strTemp)
print(tuple3) #('h', 'e', 'l', 'l', 'o')
tuple333 = tuple...tuple2)))
print(tuple5) #('a', 2.2, (1, 'b'), {'pi': 3.14}, 0.03)
tuple2 = tuple2[:1] + tuple2[2]
print....index(4)) #2 ,索引为2
print(tuple6.index(4,0,3)) #2 ,索引为2, 索引区间[0, 3),不包含3
print(tuple6.index(4,1)) #2 ...,索引为2, 索引区间[1, 3),不包含3
#print(tuple6.index(4, 0, 2)) #报异常,搜不到这个值在该区间内 ValueError: tuple.index(x): x...) #a
print(cmp(tuple7, tuple8)) #-1, 即tuple7<tuple8 (注:0相等,1大于)
#删除元素,只能通过拼接的方法'删除'
tuple6 = (1, 2