Python字符串的使用:索引,切片

[1:3] :取出第一个字符和第二个字符但不到第3个字符,TempStr[0:-1]:取出最后一个字符

猜你喜欢

转载自blog.csdn.net/weixin_41152743/article/details/89455725