代码如下
from escpos import * p = printer.File("/dev/usb/lp0") p.text('测试') p.cut()
打印结果出来是乱码 python 版本为 3.4.1