python字符串处理汇总
python字符串处理汇总爱闲逛的正经人 2014-01-18 00:59:42 去掉行首行尾的...print str[:-3] #截取从头开始到倒数第三个字符之前print str[2] #截取第...
Python内置的字符串处理函数整理
收集常用的Python 内置的各种字符串处理 函数的使用方法 str='python String function' 生成字符串变量str='python String function' 字符串长度获取:len(str)例:...