字符串对象方法
split()方法拆分字符串:

strip()方法去掉空白符和换行符:

split()结合strip()使用:

"+"符号可以将多个字符串连接起来:

join()方法也是连接字符串,比较它和"+"符号的区别:

in关键字判断一个字符串是否包含在另一个字符串中:

index()方法和find()方法判断一个子字符串的位置:

index()方法和find()方法的区别是:如果不包含子字符串,index()会抛出一个异常,而find()会返回-1。
count()方法判断子字符串出现的次数:

replace()方法替换子字符串:

正则表达式
使用正则表达式一般的操作分为三类:匹配、替换和拆分。
匹配

替换

拆分

pandas中矢量化的字符串函数
