Python Get Directory, File Name and Extension from an Absolute Path – Python Tutorial

When operating files in python, there some basic operations we shoud notice, for example, how to get directory, file name and file extension. In this tutorial, we will introduce how to get these file information.