From 7dd9d027f614416a592306738cc19188f739ab2f Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 3 Feb 2025 13:35:20 +0800 Subject: [PATCH] 1 --- tools/cal_weight_excel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/cal_weight_excel.py b/tools/cal_weight_excel.py index 5927431..2ca8232 100644 --- a/tools/cal_weight_excel.py +++ b/tools/cal_weight_excel.py @@ -86,7 +86,9 @@ def main(action, pid, sizes,orderId=0): '1/10尺寸': [0], '1/10': [0], '1/12尺寸': [0], - '1/12': [0], + '1/12': [0], + '1/14尺寸': [0], + '1/14': [0], '1/16尺寸': [0], '1/16': [0], '1/18尺寸': [0], @@ -110,7 +112,7 @@ def main(action, pid, sizes,orderId=0): if arrSize[1] in df.columns: new_data[arrSize[1]+"尺寸"] = [str(size/10)+"cm"] - new_data[arrSize[1]] = [str(weight)] + new_data[arrSize[1]] = [str(weight)+'g'] # 更新数据 # 将新数据转换为 DataFrame