一个小的示例包

re-name的Python项目详细描述


示例包

这是一个可以批量更新文件名的工具

#1589F0re_name [old patten] [new patten]

可选参数
-f --file This will make changes on file(s), you can only review the changes without this
--ext        Specify the file types you want to update
-s --suffix  Will append suffix. # stands for the sequence for file list

重新命名-f'-\d'“

hello1-1.txt  ---->  hello1.txt

重新命名-f 55 ll-s“”

he55o1.txt  ---->  hello1-1.txt
he55o2.txt  ---->  hello2-2.txt
he55o3.txt  ---->  hello3-3.txt

重新命名-f“55”“ll”--prenum

he55o1.txt  ---->  001_hello1-1.txt

姓-f“55”“ll”--婚前5

he55o1.txt  ---->  00001_hello1-1.txt

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何创建比较器   java将所有接口读入列表   java Android Studio在Webview中隐藏特定URL的操作栏   java如何在春季从云存储中生成URL文件而无需持续时间   icalendar如何使用Java以日历格式发送ics电子邮件附件?   如果textfield包含数字,则在运行时进行java检查   java util日志属性中何时需要“.level”?   java在一个字符串中显示json   跨平台日志系统的java Log4j替代方案   coldfusion在Lucee上安装Cassandra Java驱动程序   SpringWebMVC4Java配置不工作   windows使用java程序添加环境变量,并且能够在我从计算机打开“环境”选项卡时看到   java未设置变量和方法   mysql在java中通过查询更改数据库的现有行   java如何使用递归方法查找所有可能的数字   java如何使非原语类成员不可变   java将信息从输入按钮传递到标签