ニュース

This can be achieved using python-magic, a wrapper around the libmagic C library, and creating a simple function. pip install python-magic pip install libmagic import magic def file_type(file_path): ...