元组的标志
>>> temp = (1)
>>> temp
1
>>> temp2 = 1,2,3
>>> temp2
(1, 2, 3)
>>> temp1 = (1,)
>>> type(temp1)
<class 'tuple'>
元组重复
>>> 8 * (8,)
(8, 8, 8, 8, 8, 8, 8, 8)
元组修改
>>> temp = ('小甲鱼','黑夜','迷途','小布丁')
>>>> temp = temp[:2] + ('怡静',) + temp[2:]
>>> temp
('小甲鱼', '黑夜', '怡静', '迷途', '小布丁')