#!/usr/bin/eny python3
#-*- coding:utf-8 -*-
import os
import re
path=r'C:\Users\Administrator\Desktop\权利的游戏'
for item in os.scandir(path):
# print(item.path)
old_name=item.path
new_name=re.sub(r'权L的Y戏 (\w+)( 关注 微信公众号 amc127 )(\w+) .MKV','权力的游戏 \g<1> \g<2>.MKV',old_name)
# print(new_name)
# item.name = new_name
os.rename(old_name,new_name)
批量更名
最新推荐文章于 2025-07-02 13:51:10 发布