立即学习:https://edu.csdn.net/course/play/26676/338775?utm_source=blogtoedu
string[index:index2 步长]
步长是一个整数代表每隔几个字符开始取数
string[index:] 冒号后面不写 会一直取到字符串结尾
立即学习:https://edu.csdn.net/course/play/26676/338775?utm_source=blogtoedu
string[index:index2 步长]
步长是一个整数代表每隔几个字符开始取数
string[index:] 冒号后面不写 会一直取到字符串结尾