MODERN way to extract file extension in Python 🐍 #shorts #python

preview_player
Показать описание
In this quick video, I'll show you the MODERN way to extract file extensions in Python regardless of the operating system.

Use pathlib's Path object. After inserting the filename, use the property suffix to get the extension.
Рекомендации по теме
visit shbcf.ru