Writing /share/Web/wiki/data/cache/d/d7d11c031223e4d5be6a2f731dc2c339.metadata failed
linux:python:python-escpos
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| linux:python:python-escpos [2022/05/18 15:51] – 创建 zhangguo | linux:python:python-escpos [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== python-escpos ====== | ====== python-escpos ====== | ||
| + | https:// | ||
| 用python实现控制小票机打印。 | 用python实现控制小票机打印。 | ||
| 行 18: | 行 18: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | <code python> | ||
| + | |||
| + | with EscposIO(printer.Network(' | ||
| + | p.set(font=' | ||
| + | p.printer.set(align=' | ||
| + | p.printer.image(' | ||
| + | p.writelines(' | ||
| + | p.writelines(u' | ||
| + | p.writelines(u' | ||
| + | |||
| + | # After exit of with, printer will cut the paper | ||
| + | </ | ||
| + | |||
| + | |||
linux/python/python-escpos.1652860293.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)