"""
演示元组
"""

# list
# 自定了一个元组
#         0 1  2  3       4
# tuple1 = (1,2,3,'hello','武汉加油')
# tuple2 = (1)
# print(type(tuple2))
#
# # 单个数据的元组
# tuple3 = (1,)
# print(type(tuple3))
# print(tuple1[4])


# 第二大特点,,, 不可修改里面的数据
# list1 = [1,2,3]
# list1[2] = 4
# print(list1)

#  元组内部的数据  不允许被修改
# tuple1 = (1,2,3)
# tuple1[2] = 4
# print(tuple1)

# 元组里面的数据变得很安全





















































































