0
我有很少的python經驗,但目前正在玩PIL(Python圖像庫) 我想獲得一個變量打印到屏幕上,但似乎無法讓它工作。我已經嘗試了幾件事,但沒有任何工作,這只是測試代碼,但我試圖讓它顯示計數。Python PIL變量
x=0
while x < 100:
noki.cls
time.sleep(1)
im = Image.new('1', (84,48))
draw = ImageDraw.Draw(im)
draw.line((0,10, 84,10), fill=1)
draw.text((30,0), "JEFF", fill=1)
draw.text((20,10), "count: %x", fill=1)
x = x + 1
noki.show_image(im)
del draw
del im
感謝您的幫助!