Python使用 PIL 写字库.ttf等失败 OSError: cannot open resource
报错信息阅读报错信息,return freetype(font) ,return FreeTypeFont(font, size, index, encoding, layout_engine)OSError: cannot open resource一般报错此原因一般是资源文件使用有问题。首先看自己绑定的路径是否正确,有些直接绑定到File "./ClothStore/captcha/captcha.py", line 123, in <listcomp> for size
原创
2021-04-30 15:58:20 ·
3778 阅读 ·
3 评论