users = ('root','westos','redhat')
passwds = ('123','456','789')
#索引 切片
print(users[0])
print(users[-1])
print(users[1:])
print(users[:2])
print(users[::-1])
#重复
print(users * 3)
#连接
print(users + ('rhce','rhcsa'))
#成员操作符
print('westos' in users)
print('westos' not in users)
#for循环
for user in users:
print(user)
for index,user in enumerate(users):
print(index,'-->',user)
for user,passwd in zip(users,passwds):
print(user,':',passwd)
t = (1,1.2,True,'westos')
print(t.count('westos'))
print(t.index('westos'))