from pathlib import Path for file in os.listdir(): f = Path(file) new_name = f"{f.stem}_new{f.suffix}" f.rename(new_name) ...
確定! 回上一頁