python-生成条码
from pystrich.code128 import Code128Encoder async def getBarCode(self,code): """ 获取条码 """ url = get_barcode_file_path(code) # 存储条码路径 encoder = Code128Encoder(code, {'show_label': False}) encoder.save(url, 1) os.system(url) return url
from pystrich.code128 import Code128Encoder async def getBarCode(self,code): """ 获取条码 """ url = get_barcode_file_path(code) # 存储条码路径 encoder = Code128Encoder(code, {'show_label': False}) encoder.save(url, 1) os.system(url) return url