立即学习:https://edu.csdn.net/course/play/26676/338776?utm_source=blogtoedu
dir(str):查看字符串方法
help(str.index):查看字符串的index方法
sub:代表一个子集
S.index(sub,[,start],[,end])->int(返回值)
从左到右查看子集的范围,第一次发现子集的位置
split:字符串分割方法
"-".join(lst):组装字符串
格式化字符串:format();
format():^字符居中,>右对齐