import imghdr
if imghdr.what(path):
# True
else:
# False
python判断图片是否损坏
最新推荐文章于 2024-03-11 22:30:34 发布
import imghdr
if imghdr.what(path):
# True
else:
# False