[第二章]Python字符串切片示例
来源:互联网 发布:安卓录屏软件哪个好 编辑:程序博客网 时间:2024/04/29 09:28
[第三章] Python使用字符串切片示例
3.16 s = ‘hello’, t = ‘world’, s+= t, 则s、s[-1]、s[2:8]、s[::3]、s[-2::-1]、s[::-1]分别是多少?
>>>s = 'hello'>>>t = 'world'>>>s += t>>>print(s)helloworld>>>s[-1]'d'>>>s[2:8]'llowor'>>>s[::3]'hlod'>>>s[-2::-1]'lrowolleh'>>>s[::-1]'dlrowolleh'
阅读全文
0 0
- [第二章]Python字符串切片示例
- python中的字符串切片
- python中的字符串切片
- python对字符串切片
- Python列表切片用法示例
- python学习:字符串切片操作
- python 切片,字符串逆序神器
- Python中字符串切片操作
- python连接两个字符串切片
- [Python] 对字符串,列表的切片操作
- python 切片
- Python 切片
- python--切片
- Python-切片
- Python - 切片
- python 切片
- python 切片
- python 切片
- ServletRequestListener | 监听器 | 应用例子
- 设计套路:Mysql主键的选择
- CPU后面字母究竟是啥?
- Android M 新的运行时权限开发者需要知道的一切
- React中Ref的使用
- [第二章]Python字符串切片示例
- Drying POJ
- Springboot的restApi兼容json和jsonp
- C语言程序设计(30)
- angular2实战笔记--路由篇
- Python面向对象——02
- JVM性能调优监控工具jps、jstack、jmap、jhat、jstat、hprof
- 堆内存和栈内存
- Leetcode Algorithm 006. ZigZag Conversion