立即学习:https://edu.csdn.net/course/play/26676/338775?utm_source=blogtoedu
索引:对序列中元素进行编号 编号叫做索引(从左0开始)右为-1
str[0] 代表去第一个字符
str[0:5] 去第一个到第4个数字
str[0:5:1]步长1
步长如果为负数那边代表把字符串反序
a=input(‘a的值为:’)
>>>a的值为:3
>>>a
>>>3