Skip to content

yunyuyuan/renamable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renamable

一个简约的批量重命名工具

  • Python3.9
  • PyQt5
  • pyinstaller

使用

三选一

  • 想下载即用:下载renamable.rar。解压缩后,直接运行renamable.exe
  • 想跑python代码clone项目->安装PyQt5->python main.py
  • 想自己打包exe文件clone项目->安装PyQt5和pyinstaller->pyinstaller -D -w -i=assets/icon.ico -n renamable main.py

✨Tips

需要会写正则表达式。如果你不会写,请看教程

如果你会写,其实renamable就是调用了python re模块的sub函数,例如:

C:\users\xxx\desktop\[xx字幕组]-进击的巨人S04-1080p-E01.mp4C:\users\xxx\desktop\[xx字幕组]-进击的巨人S04-1080p-E02.mp4C:\users\xxx\desktop\[xx字幕组]-进击的巨人S04-1080p-E03.mp4

等等文件想要转化成

C:\users\xxx\desktop\01.mp4C:\users\xxx\desktop\02.mp4C:\users\xxx\desktop\03.mp4

那么输入这样写:^\[xx字幕组\]-进击的巨人S04-1080p-E(\d+)\.mp4$,输出这样写:\1.mp4

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published