![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python 基础
YanLzh_MAlone
这个作者很懒,什么都没留下…
展开
-
python基础---字符串
字符串1. 字符串拼接1.1 字符串与字符串拼接1.2 字符串与其他类型拼接2. 字符串截取2.2 截取单个字符---索引2.3 截取多个字符---切片3.len()函数4. split() 分割5. join() 合并6. count() 统计次数7. find() , index()8. startwith() , endwith()9. title(), lower(), upper()10. strip() 去除空格11. format() 格式化输出1. 字符串拼接1.1 字符串与字符串拼接原创 2020-05-14 21:03:44 · 203 阅读 · 0 评论 -
python基础---序列
序列1. list1.1 创建列表1.1.1 使用 [ ] 创建列表1.1.2 使用list函数创建列表1.2 访问列表元素1.2.1 使用索引访问1.2.2 使用切片访问1.3 删除列表1.4 添加元素1.4.1 append 方法1.4.2 extend 方法1.4.3 insert 方法1.5 删除元素1.5.1 del 关键字1.5.2 pop 方法1.5.3 remove 方法1.5.4 clear 方法1.6 修改元素1.6.1 修改单个元素1.6.2 修改一组元素1.7 查询元素1.7.1 i原创 2020-05-12 16:29:04 · 239 阅读 · 0 评论