我正在尝试使用raspberry pi从python代码中打印。
我尝试使用brother-ql模块,但它没有给我一个错误。但是,打印机不打印任何内容。
这是我的代码和它给出的结果的快照。enter image description here
有什么建议吗?我已经在图片中发布了编码
发布于 2021-11-18 07:12:12
我设法用带有Raspberry Pi的Brother QL-800打印机打印。
我使用了python中的cups模块来打印。
代码:-
导入杯子
conn = cups.Connection()
打印机= conn.getPrinters()
printer_name = (printers.keys())
#要读取的文件的期望位置
conn.printFile(printer_name,‘/home/pi/Desktop/Whatthup.csv’,"",{})
https://stackoverflow.com/questions/70001059
复制相似问题