pathlib、shutil 与 tempfile | Python

本章覆盖:Path;路径拼接与遍历;exists / is_file / is_dir;read_text / write_text 的适用场景;shutil 复制/移动/删除;tempfile 临时文件与目录。

本章知识点

  • Path
  • 路径拼接与遍历
  • exists / is_file / is_dir
  • read_text / write_text 的适用场景
  • shutil 复制/移动/删除
  • tempfile 临时文件与目录