#16 Learn to use Python files and directories related methods

Опубликовано: 04 Ноябрь 2024
на канале: Python Lessons
2,418
39

There are many sources, which provide a wide range of utility methods to handle and manipulate files and directories with Python on Windows, Linux and other operating systems, but in this tutorial we will cover only most often used methods.

All files are contained within various directories and Python has no problems handling them. The os module has several methods that help you perform file-processing operations, such as create, remove, rename or change directories. We will cover mentioned methods here, but keep in mind, that all further methods require to import os build in module.

Text tutorial: http://pylessons.com/Python-3-basics-...

Twitter:   / pylessons  
Facebook:   / pylessons