定义元祖:
dimensions = (200,50)print (dimensions[0])print (dimensions[1]) 元祖中的元素无法被修改
遍历元祖中的值:
for dimension in dimensions: 与列表一样可被遍历 print (dimension)