会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Yong5437
博客园
首页
新随笔
联系
订阅
管理
2021年9月10日
python 查看iterable对象的长度,及将iterable对象转换为list所带来的影响
摘要: 1.使用len(list(iter_name))查看iterable对象长度,发现iterable对象不再可用 代码如下: from pathlib import Path img_path = Path("./img") img_files = img_path.rglob("*.png") pr
阅读全文
posted @ 2021-09-10 15:07 Yong5437
阅读(411)
评论(0)
推荐(0)
公告