使用python的pillow模块中的imagefont.truetype出现问题 200
如图片所示C:\Users\Hades>pythonPython3.6.0(v3.6.0:41df79263a11,Dec232016,08:06:12)[MSCv.19...
如图片所示C:\Users\Hades>pythonPython 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> from PIL import ImageFont>>> fontsize = ImageFont.truetype('Arial.ttf', 36)Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\Program Files\Python\lib\site-packages\PIL\ImageFont.py", line 238, in truetype return FreeTypeFont(font, size, index, encoding) File "D:\Program Files\Python\lib\site-packages\PIL\ImageFont.py", line 127, in __init__ self.font = core.getfont(font, size, index, encoding)OSError: cannot open resource>>>
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询