自学笔记——Python内置的处理字符串的函数
序号
函数描述
1
capitalize() 字符串的首字母变为大写
2
center(width, fillchar) 返回原来的字符串(居中),并以空格填充至特定长度的字符串
3
count( str ,beg = 0, end = len(string) )计算出str在字符串中出现的字数,或者其实索引为beg结束为end的子字符串中出现的次数
4
decode(...
原创
2020-05-28 14:48:25 ·
269 阅读 ·
0 评论