num_tuple_1 = (1, 2, 3, 4, 5) print(num_tuple_1) print(len(num_tuple_1)) num_tuple_2 = tuple(range(6, 11)) num_tuple = num_tuple_1 + num_tuple_2 print(num_tuple) print(len(num_tuple)) 创建元组:可以同时使用tuple函数和range函数; 元组拼接:直接用+号,tuple_1 + tuple_2 元组一旦定义,就不可修改。