|
@@ -75,11 +75,11 @@ def evaluate_one(xlsx_dict, res_dict):
|
|
|
table_result.extend([key_yes, xlsx_dict[key_yes], res_dict[key_yes], '❌'])
|
|
|
# 无key值的比较
|
|
|
key_no_dict = {}
|
|
|
- for key_no_xlsx in xlsx_dict_no_space['noKeyList']:
|
|
|
- key_no_dict[key_no_xlsx] = []
|
|
|
+ for key_no_xlsx_no_space, key_no_xlsx in zip(xlsx_dict_no_space['noKeyList'], xlsx_dict['noKeyList']):
|
|
|
+ key_no_dict[key_no_xlsx_no_space] = []
|
|
|
for key_no_res in res_dict['noKeyList']:
|
|
|
- key_no_dict[key_no_xlsx].append((Levenshtein_Distance(key_no_xlsx, key_no_res), key_no_res))
|
|
|
- sort_NoKey = sorted(key_no_dict[key_no_xlsx], key=lambda x: x[0])
|
|
|
+ key_no_dict[key_no_xlsx_no_space].append((Levenshtein_Distance(key_no_xlsx_no_space, key_no_res), key_no_res))
|
|
|
+ sort_NoKey = sorted(key_no_dict[key_no_xlsx_no_space], key=lambda x: x[0])
|
|
|
NoKey_min_distance = sort_NoKey[0][0]
|
|
|
if NoKey_min_distance == 0:
|
|
|
table_result.extend(['无key值', key_no_xlsx, sort_NoKey[0][1], '✅'])
|