Python string slice indices - slice to end of string

后端 未结 7 1743
粉色の甜心
粉色の甜心 2020-12-28 15:39

With string indices, is there a way to slice to end of string without using len()? Negative indices start from the end, but [-1] omits the final character.

w         


        
7条回答
提交回复
热议问题