标签: python python-2.7 cups pycups
import cups conn = cups.Connection() printers = conn.getPrinters() printer_name = printers.keys()[0] conn.printFile(printer_name,'/home/pi/Desktop/tempprint.jpg',"Hello",{})
如何将printFile更改为打印文本示例“hello world”?不是档案。 谢谢