python自带的pathlib os and os.pathpathlibos.path.abspath()Path.resolve() 1os.chmod()Path.chmod()os.mkdir()Path.mkdir()os.makedirs()Path.mkdir()os.rename()Path.rename()os.replace()Path.replace()os.rmdir()Path.rmdir()os.remove(), os.unlink()Path.unlink()os.getcwd()Path.cwd()os.path.exists()Path.exists()os.path.expanduser()Path.expanduser() and Path.home()os.listdir()Path.iterdir()os.path.isdir()Path.is_dir()os.path.isfile()Path.is_file()os.path.islink()Path.is_symlink()os.link()Path.hardlink_to()os.symlink()Path.symlink_to()os.readlink()Path.readlink()os.path.relpath()Path.relative_to() 2os.stat()Path.stat(), Path.owner(), Path.group()os.path.isabs()PurePath.is_absolute()os.path.join()PurePath.joinpath()os.path.basename()PurePath.nameos.path.dirname()PurePath.parentos.path.samefile()Path.samefile()os.path.splitext()PurePath.suffix