OSError:[Errno 36]文件名太长

时间:2018-04-16 04:56:22

标签: python-3.x

我的输出:

  

OSError:[Errno 36]文件名太长:   " /媒体/比/ 3E7019A6701965C5 // nhandt_MaskRCNN_Nouth / [' 1.JPG&#39 ;,   ' 18-10.JPG',' 18-11.JPG',' 18-12.JPG',' 18-13.JPG&#39 ;,' 18-14.JPG',   ' 18-15.JPG',' 18-16.JPG',' 18-17.JPG',' 18-18.JPG&#39 ;,' 18-19.JPG',   ' 18-2.JPG',' 18-20.JPG',' 18-21.JPG',' 18-22.JPG&#39 ;,' 18-23.JPG',   ' 18-24.JPG',' 18-25.JPG',' 18-26.JPG',' 18-3.JPG&#39 ;,' 18-4.JPG',   ' 18-5.JPG',' 18-6.JPG',' 18-7.JPG',' 18-8.JPG&#39 ;,' 18-9.JPG']。jpg"

python中的代码

font = ImageFont.truetype('/usr/share/fonts/truetype/freefont/FreeMono.ttf', 28, encoding="unic" )
draw.text((x1, y1), "%s %f" % (label, score), (255, 255, 255), font)

我该如何解决?

0 个答案:

没有答案
相关问题