d68ab924 by chenyao

更新如果有没找到的对应的key,则直接设置为空

1 parent 378c0824
...@@ -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):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!