ltp打印设置

zhang pu 发布于 阅读:7 日记

如果你的收银机是 Windows(需装 win32print)

pip install pywin32
python lpt-print-agent.py

指定端口和 LPT

python lpt-print-agent.py --port 9168 --lpt LPT1
🖨️ LPT Print Agent 已启动
📡 监听: http://127.0.0.1:9168
🔌 LPT端口: LPT1