rmdir 与removedirs 有什么区别?

rmdir 与removedirs 有什么区别?

请问rmdir 与removedirs 有什么区别?谢谢
建议去看文档。
是不是很无语?
我跟踪学习.

removedirs( path)

Removes directories recursively. Works like rmdir() except that, if the leaf directory is successfully removed, removedirs() tries to successively remove every parent directory mentioned in path until an error is raised (which is ignored, because it generally means that a parent directory is not empty). For example, "os.removedirs('foo/bar/baz')" will first remove the directory "'foo/bar/baz'", and then remove "'foo/bar'"and "'foo'" if they are empty. Raises OSError if the leaf directory could not be successfully removed. New in version 1.5.2.