s1 = 'pythonpython'
#对字符串进行索引,切片出来的数据都是字符串类型。
#从左到右有顺序,下标,索引
s2 = s[0]
print(s2,,type(s2))
#倒序
s8 = s1[-1:-6:-1]
print(s8)
切片