mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 10:25:01 +08:00
修改代码
This commit is contained in:
parent
76b12d3468
commit
ccb37a1509
@ -35,8 +35,12 @@ class Discern(object):
|
|||||||
line_str += line
|
line_str += line
|
||||||
if '报告编号:' in line:
|
if '报告编号:' in line:
|
||||||
self.xlsx_keys['报告编号'] = line.split("报告编号")[1].strip().replace(': ', '')
|
self.xlsx_keys['报告编号'] = line.split("报告编号")[1].strip().replace(': ', '')
|
||||||
|
if 'Report Number:' in line:
|
||||||
|
self.xlsx_keys['报告编号'] = line.split("Report Number")[1].strip().replace(': ', '')
|
||||||
if '样品名称:' in line:
|
if '样品名称:' in line:
|
||||||
self.xlsx_keys['样品名称'] = line.split("样品名称")[1].strip().replace(': ', '')
|
self.xlsx_keys['样品名称'] = line.split("样品名称")[1].strip().replace(': ', '')
|
||||||
|
if 'Article Name:' in line:
|
||||||
|
self.xlsx_keys['样品名称'] = line.split("Article Name")[1].strip().replace(': ', '')
|
||||||
if '公司' in line and '中检华通' not in line and '制造商' not in line:
|
if '公司' in line and '中检华通' not in line and '制造商' not in line:
|
||||||
self.xlsx_keys['公司名称'] = line.strip()
|
self.xlsx_keys['公司名称'] = line.strip()
|
||||||
if '最终报告' in line:
|
if '最终报告' in line:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user