ora*_*gas 3 python barcode python-2.7
有谁知道如何删除条形码下面的文字?条形码是使用barcode.py库生成的。我试图检查https://bitbucket.org/whitie/python-barcode 但找不到解决方案,应该在 python 中的条形码保存行中写入哪些属性:
ean = barcode.get('code39', str(row['PART']), writer=ImageWriter())
Run Code Online (Sandbox Code Playgroud)
小智 7
尝试这个:
barcode.default_writer_options['write_text'] = False
Run Code Online (Sandbox Code Playgroud)
这就是解决方案
import barcode
from barcode.writer import ImageWriter
ITF = barcode.get_barcode_class('itf')
itf = ITF('30573190692203003169482900832115201911297', writer=ImageWriter())
fullname = itf.save('itf_barcode', options={"write_text": False})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5542 次 |
| 最近记录: |