# 1 连接操作符和重复操作符
name = 'westos'
print('hello ' + name)
print('hello' + str(1))
print('*' * 30 + '学生管理系统' + '*' * 30)
# 2 成员操作符
s = 'westos'
print('westos' in s) # Ture
print('westos' not in s) # Flase
# 3 正向索引和反向索引
s = 'westos'
print(s[0]) # w
print(s[-3]) # t
# 4 切片
"""
切除一部分内容
"""
s = 'hello westos'
print(s[1:3]) # 'el'
print(s[:3]) # 'hel'
print(s[1:]) # 'ello westos'
print(s[:]) # 拷贝一份
print(s[::-1])
# 5 for循环循环
s = 'westos'
count = 0
for item in s:
count += 1
print(f'第{count}个字符:{item}')