# -*- coding: utf-8 -*-

"""
元组内元素无法修改，以圆括号括起来
"""

location = (1,2,3)
print(location)

location[0] = 10
print(location)

#重新创建新元组覆盖旧元组即可
location = (10,2,3)
print(location)

#遍历元组
for i in location:
    print(i)
d2eac245e27baa011d15e396ffd25bff06f49907
<mask token>

<mask token>
print(location)
<mask token>
print(location)
<mask token>
print(location)
for i in location:
    print(i)

<mask token>
location = 1, 2, 3
print(location)
location[0] = 10
print(location)
location = 10, 2, 3
print(location)
for i in location:
    print(i)

# -*- coding: utf-8 -*-

"""
元组内元素无法修改，以圆括号括起来
"""

location = (1,2,3)
print(location)

location[0] = 10
print(location)

#重新创建新元组覆盖旧元组即可
location = (10,2,3)
print(location)

#遍历元组
for i in location:
    print(i)