列表数据可以更改,但是元组不可以
# 元组
tuple=(1,2,3,4,5,6)
# 查找
print(tuple[0])
# 1
print(tuple.index(3))
# 2
# 出现次数
tuple1=(1,1,1,2,3,4,5,6)
print(tuple1.count(1))
# 3
# 长度
print(len(tuple1))
# 8
# 合并+:字符串、列表、元组
# 复制*:字符串、列表、元组
str='abc'
print(str*3)
# 存在in / not in :字符串、列表、元组
# 整除://
# 取余:%
# 指数:**
# 括号:()