2
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”?不归档。谢谢你

4

0 回答 0