\\print("hello world")
s1="hello world"
print("s1[0:1]")
**he
print("s1[:]")
**hello world
print("s1[7:]")
**world
print("s1[::2]")
**hlowrd
python学习----字符分片索引
最新推荐文章于 2022-09-20 21:32:34 发布
\\print("hello world")
s1="hello world"
print("s1[0:1]")
**he
print("s1[:]")
**hello world
print("s1[7:]")
**world
print("s1[::2]")
**hlowrd