元组是不可改变的序列
1 元组的定义
(元素, 元素, 元素)
不能删除元组中的某一个元素
>>> a = (1,2,3)
>>> del a[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'tuple' object doesn't support item deletion
>>> a
(1, 2, 3)
可以直接将该元组删除
>>> a = (1,2,3)
>>> del a
>>> a
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined