Path Lib Tutorial - Python Simplified

Publié le: 23 décembre 2020
sur la chaîne: Deep Word
2,159
50

Before Python 3.4, there was no standard python module for dealing with paths. We could use strings to represent them, but it was inefficient and error prone. For example, there could be missing slashes or extra slashes, and navigating paths would require writing complex code. Of course there was the os library to interact with the os, but for this use case, it is unnecessarily verbose and doesn’t provide the most intuitive methods.

This is where pathlib comes in. It provides an object oriented way of interacting with the file system, with its methods similar to the ones we use in the terminal, making it intuitive and easy to use.

Add facecams to your tutorials for free - https://www.deepword.co/education-tut...


Sur cette page du site, vous pouvez voir la vidéo en ligne Path Lib Tutorial - Python Simplified durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Deep Word 23 décembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,159 fois et il a aimé 50 téléspectateurs. Bon visionnage!