【发布时间】:2018-12-28 11:53:29
【问题描述】:
我想传递整数值而不是字符串,比如 a = 45,但它不起作用!
import Image
import ImageDraw
import ImageFont
width = disp.width
height = disp.height
image = Image.new('1', (width, height))
font = ImageFont.load_default()
a = 45
draw.text((x, top), a , font=font, fill=255)
draw.text((x, top+20), 'World!', font=font, fill=255)
【问题讨论】:
标签: python python-imaging-library raspberry-pi3