会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Rocinante
ASAP - always strive and prosper.
WTF - What's true for love, is true for code.
********************************Manjaro - yyds!********************************
博客园
首页
新随笔
联系
订阅
管理
2019年10月4日
Python - 反向遍历序列(列表、字符串、元组等)的五种方式
摘要: 1. reversed() 2. range(len(a) 1, 1, 1) 3. range(len(a)) + ~操作符 ~按位取反运算符:对数据的每个二进制位取反,即把1变为0,把0变为1 。~x 类似于 x 1 4. slice 5. length i 1
阅读全文
posted @ 2019-10-04 00:16 Rocin
阅读(9633)
评论(0)
推荐(0)
编辑
公告