元组和列表的区别:
1、列表可变,元组不可变
2、创建列表时用的中括号,创建元组时小括号
更新元祖:
删除元祖:
删除一个单独的元组元素是不可能的。 当然,把不需要的元素丢弃后,重新组成一个元组是没有问题的。 要显示地删除一整个元组,只要用del语句减少对象引用计数。 当这个引用计数达到0的时候,该对象就会被析构。 大多数时候,不需要显示的用del删除一个对象, 一出它的作用域它就会被析构。