📜  为多个文件名添加后缀python代码示例

📅  最后修改于: 2022-03-11 14:45:15.761000             🧑  作者: Mango

代码示例1
from glob import glob
import os
pre = "xyz_"
[os.rename(f, "{}{}".format(pre, f)) for f in glob("*.html")]