第三章字符串
来源:互联网 发布:java 迷宫移动 编辑:程序博客网 时间:2024/06/11 11:50
所有标准的序列操作对于字符串同样适用
字符串都是不可变的
字符串的格式化 %
find 返回值为索引值
join 连接时必须都是字符串
lower 返回字符串小写字符
replace
split 分割
strip 去除两侧空格的字符串
maketrans Python3.4已经没有string.maketrans()了,取而代之的是内建函数:
bytearray.maketrans()、bytes.maketrans()、str.maketrans()
字符串都是不可变的
字符串的格式化 %
find 返回值为索引值
join 连接时必须都是字符串
lower 返回字符串小写字符
replace
split 分割
strip 去除两侧空格的字符串
maketrans Python3.4已经没有string.maketrans()了,取而代之的是内建函数:
bytearray.maketrans()、bytes.maketrans()、str.maketrans()
0 0
- 第三章 字符串类型
- 《Python 第三章》字符串
- 第三章字符串
- Python第三章-字符串
- 第三章 使用字符串
- 第三章 使用字符串
- 第三章 字符串
- 第三章 数组和字符串
- 第三章 数组和字符串
- python学习第三章----字符串
- Python 第三章 使用字符串
- Python基础教程 | 第三章 字符串
- 第三章 字符串、向量、数组
- 第三章字符串,向量,数组
- 第三章 数组和字符串
- 第三十二章 字符串匹配
- 第三章 数组与字符串
- 第三章 字符串 向量 数组
- [R语言统计]频数表
- Redis数据分片
- Linux(Ubuntu)新增用户并设置为管理员
- LED数码管-十六进制码值
- Masonry介绍与使用实践(快速上手Autolayout)
- 第三章字符串
- Majority Element
- 使用ContentProvider共享数据
- 480000 millis timeout while waiting for channel to be ready for write异常处理
- Memcached 的工作原理
- makefile
- 列举C++数据库开源工具
- static静态变量的理解
- 基于微信公众平台的Python开发——(网易云)音乐搜索