Delete tuple
Element value tuples can not be deleted, but we can use the del statement to delete an entire tuple, the following examples:
Examples of the above tuple is deleted, there is abnormality information output variables, output is as follows:
Operators tuple
Like the string, a tuple can be used between + and calculates asterisk. This means that they can be combined and after replication operation will generate a new tuple.
Tuple index, taken
Because a sequence of tuples is, we can access the element at the location http://www.xuanhe.net/ tuples, some elements may be taken in the index, as follows:
Tuple:
No closing delimiter
Unsigned any objects spaced comma, the default tuples, the following examples:
Tuple built-in functions
Python tuple contains the following built-in functions