摘要: import re a = 'sadf.4.555.asdf.123sadf.sadf' b = re.sub(r"\.([0-9a-zA-Z]+)\.[0-9a-zA-Z]+$", "-你好啊时间-\g<1>", a) ##2, 批量修改文件 #_*_ encoding: utf-8 _*_ @a 阅读全文
posted @ 2023-03-15 23:19 ty1539 阅读(90) 评论(0) 推荐(0) 编辑