立即学习:https://edu.csdn.net/course/play/26676/338776?utm_source=blogtoedu
1、dir:查看字符串的属性和方法 dir(str)
2、某一个对方的方法,help(s.index)
3、S.index(sub[,start[,end]])]
4、a.split(' '),中间偶空格,把一句话中几个单词拆开。
5、‘-’.join(lst)将拆开的单词合并。
6、format:字符串的格式化输出:“I like {0} and {1}”.format("python","physics");0和1 是占位符,用后面的填充。“I like {0:10} and {1:>15}”.format("python","physics"),>是右对齐。^(shift+6)是居中
7、fomat计数的方式是从0开始的