1.创建和访问一个元组 1.1创建元组 元组的标志性符号是 , tuple1 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) #定义单个元素的元组,要加 , tuple2 = (1,) tuple3 = 1, 2, 3 tuple4 = (1) #定义一个空元组 tuple5 = () print(type(tuple1),type(tuple2),type(tuple3),type(tuple4),type(tuple5)) 1.2元组一旦定义,就不能更改. tuple1…