The built-in os module has a number of useful functions that can be used to list directory contents and filter the results. In this lesson, you'll learn about os.listdir() and os.scandir().The lesson also covers another way to get a directory listing using the pathlib module.
Click here to learn more: https://realpython.com/courses/practi...
Смотрите видео Getting a Directory Listing in Python онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Real Python 06 Август 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,606 раз и оно понравилось 130 людям.