编辑器
import mailcap print(hasattr(mailcap, "findmatch"))
True
DeprecationWarning: The mailcap module is deprecated and will be removed in Python 3.13. See the mimetypes module for an alternative.