报这个错是什么意思呢?
来源:4-12 .实现验证码功能(下)
喵的薛定谔i
2018-03-17
Traceback (most recent call last):
File "F:/PycharmProject/artcms_project/code.py", line 71, in <module>
print(c.create_code())
File "F:/PycharmProject/artcms_project/code.py", line 52, in create_code
font = ImageFont.truetype(font_file, 30)
File "C:\Users\Administrator\Envs\flask\lib\site-packages\PIL\ImageFont.py", line 260, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "C:\Users\Administrator\Envs\flask\lib\site-packages\PIL\ImageFont.py", line 143, in __init__
self.font = core.getfont(font, size, index, encoding, layout_engine=layout_engine)
OSError: cannot open resource
写回答
1回答
-
喵的薛定谔i
提问者
2018-03-17
知道了,代码上少了一个“/”
00
相似问题