我的Citizen CL-S631设备服务有问题。我只知道编程语言是ZPL II。但是我需要帮助如何从python 2.7级处理它。下面,我介绍仅在控制台中打印的代码,例如:
XA ^ ^ ^ FO0,0 A0N,120.96 ^ FB720,1,0,C,0°C FDP问题? ^ CF ^ XZ
在这里,我给出代码:
from zpl import *
from label import*
l = Label(65,60)
height = 10
l.origin(0,0)
l.write_text("Problem?", char_height=10, char_width=8, line_width=60,
justification='C')
l.endorigin()
#height += 13
#image_width = 55
#l.origin((l.width-image_width)/2, height)
#image_height = l.write_graphic(Image.open('trollface-large.png'),
#image_width)
#l.endorigin()
#l.origin(0, height+image_height)
#l.write_text('Happy Troloween!', char_height=5, char_width=4,
#line_width=60,
# justification='C')
#l.endorigin()
print(l.dumpZPL())
l.preview()
Zgóry, Dziękuję