更新如果有没找到的对应的key,则直接设置为空
Showing
1 changed file
with
3 additions
and
0 deletions
| ... | @@ -897,6 +897,9 @@ class BSWorkbook(Workbook): | ... | @@ -897,6 +897,9 @@ class BSWorkbook(Workbook): |
| 897 | if dp_key in english_chinese_dict.keys(): | 897 | if dp_key in english_chinese_dict.keys(): |
| 898 | row = [english_chinese_dict[dp_key], str(dp_value)] | 898 | row = [english_chinese_dict[dp_key], str(dp_value)] |
| 899 | ws.append(row) | 899 | ws.append(row) |
| 900 | else: | ||
| 901 | row = [english_chinese_dict[dp_key], ""] | ||
| 902 | ws.append(row) | ||
| 900 | 903 | ||
| 901 | @staticmethod | 904 | @staticmethod |
| 902 | def remove_yuan(amount_key_set, key, src_str): | 905 | def remove_yuan(amount_key_set, key, src_str): | ... | ... |
-
Please register or sign in to post a comment