本文共 596 字,大约阅读时间需要 1 分钟。
环境:windows7 ,Python 3.6.7 ,you-get 0.4.1432 ,bat
变量说明:
for1 chapters 章节 62184 ~ 62210
for2 jpgNum jpg 1~40
for3 fileFolder 存放每个章节的文件夹 1~50最初的示例图
测试代码
路径内容:
最终效果代码 test.bat:
@echo offSETLOCALset /a chapters=62184set /a jpgNum=1set /a fileFolder=1:startmd C:\Users\test\%fileFolder%md C:\Users\test\%fileFolder%\%chapters%you-get -o C:\Users\test\%fileFolder%\%chapters% https://xxxx/xxx/11827/%chapters%/%jpgNum%.jpgset /a jpgNum+=1if %jpgNum% leq 3 GOTO startset /a jpgNum=1set /a fileFolder+=1set /a chapters+=1if %fileFolder% leq 3 GOTO startif %chapters% leq 62186 GOTO startEXITpause
转载地址:http://slhe.baihongyu.com/