#元组 元素不可以被修改,不增加或删除
#
# li = [11,22,12,33,134]
# tu = (11,22,33,44,556,32,67,)
#一般写元组的时候最后加一个逗号
#tuple
#索引
# v = tu[0:4]
# print(v)
#可以被for循环 可迭代对象
# for i in tu:
# print(i)
#字符串转换 元组
# s = "dlkagje1232"
# tu1 = tuple(s)
#
# tu2 = tuple(li)
#
# print(tu1,tu2)
#元组转列表 字符串
#
# tu = (11,22,"33","alds","dfpk")
#
# li = list(tu)
# print(li)
#
# s=""
# for i in tu:
# s = s + str(i) #注意要把数字,转换字符串
# print(s)
#
# tu1 = ("212","sdf")
# s1 = "_".join(tu1)
# print(s1)# 元组中没有数字,可以直接jion 直接拼接
#元组的一级元素不可修改/删除/增加
tu = (111,"234r2",("dag",12),[("ddd","daf")],True,44,99)
#取出 ddd
v= tu[3][0][0]
print(v)
v = tu[3]
print(v)
tu[3][0]=45676
print(tu)
#def count(self, value): # 统计元组内值所出现的次数
#def index(self, value, start=None, stop=None): # 根据索引找到相应的值