str1 =(str1.count())(str1.capitalize())(str1.center(,))(str1.endswith())(str1.startswith())(str1.expandtabs(=)) (str1.find())(str1.format_map({:,:})) (str1.index()) (str1.isalnum())(.isnumeric())(.isdecimal())(.isidentifier())(.islower())(.isupper())(.isspace())(.strip())(str1.replace(,))(str1.find()) (.split(,))(str1.title())
菜鸟的Python之路--基础知识(字符串的基本操作)
原创
©著作权归作者所有:来自51CTO博客作者五星12138的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
python基础-条件语句、while、字符串格式化、运算符、字符串编码
学习Python基础的笔记,看视频学Python。
字符串 Python 代码块 python基础 -
菜鸟的Python之路--基础知识(列表的基本操作)
Python列表基础操作
列表 python -
菜鸟的Python之路--基础知识
for循环,while循环,格式化输出
Python Python -
python基础知识——字符串
1、字符串的格式化pytho
python 字符串 子串 -
基础知识:字符串
][
算法 字符串 数组 大小写 -
C++基础知识(二) 字符串
字符串就是内存中存储的
C++ c++基础 标准 字符串 多字节 -
29 - python字符串的基本操作
python字符串的一些基本操作
字符串 索引 分片 乘法 python面试题