- 博客(1)
- 问答 (2)
- 收藏
- 关注
原创 python enumerate总结
enumerate总结 enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同时列出数据和数据下标,一般用在 for 循环当中。 for 循环使用 enumerate >>>seq = ['one', 'two', 'three'] >>> for i, element in enumerate(seq): ... print i, element ... 0 one 1 two 2 three 其中,i是元素索引
2021-05-09 15:11:45 69
空空如也
hexo上传的图片无法显示
2018-11-08
路由器中Linux系统与桌面端有何不同?
2018-11-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人