AILOVEU 最近的时间轴更新
AILOVEU

AILOVEU

V2EX 第 355016 号会员,加入于 2018-10-10 14:14:39 +08:00
[多线程] Python 多线程的锁为什么不好用?
Python  •  AILOVEU  •  2019 年 7 月 3 日  •  最后回复来自 zkqiang
12
测试 0702
沙盒  •  AILOVEU  •  2019 年 7 月 2 日
测试图片 AILOVEU
沙盒  •  AILOVEU  •  2019 年 5 月 14 日  •  最后回复来自 shcolo
4
[ Python ]递归遍历文件夹,使用生成器返回每个文件名_md 版本
Python  •  AILOVEU  •  2019 年 5 月 7 日  •  最后回复来自 AILOVEU
17
AILOVEU 最近回复了
@Cooky 其实我的问题用字符串表示更确切些,即“ string ”变成“ stng ”。当然字符串这样比喻也只是为了方便说明,最最最终是 b'xxx',这种的截取
@lc1450 Using scandir() instead of listdir() can significantly increase the performance of code that also needs file type or file attribute information
如果不用 yield,递归是很容易实现的,因为最近学到了,所以就想把它包装成一个方法; os.walk 也可以勉强完成处理后复制文件的功能,但用起来会很别扭
@lc1450 是指替换 os.listdir 吧
@jeadong 什么啊?
@liukrystal 不光是遍历,主要是第二个参数,可以用于复制文件等
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   6188 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 06:17 · PVG 14:17 · LAX 22:17 · JFK 01:17
♥ Do have faith in what you're doing.