From bbc53e4321af51cac27fa6b8fef0854abf8c84cf Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 3 Feb 2025 12:50:31 +0800 Subject: [PATCH] 1 --- tools/cal_weight_excel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/cal_weight_excel.py b/tools/cal_weight_excel.py index 780c289..82b9ff3 100644 --- a/tools/cal_weight_excel.py +++ b/tools/cal_weight_excel.py @@ -141,8 +141,9 @@ if __name__ == '__main__': sizes = [] #根据真实身高计算不同的比例的高度 - arrBiLie = [1/4,1/6.1/8,1/10,1/12,1/16,1/18,1/24,1/32,1/43,1/64] - for biLie in arrBiLie: + arrBiLie = [["1/4",1/4],["1/6",1/6],["1/8",1/8],["1/10",1/10],["1/12",1/12],["1/16",1/16],["1/18",1/18],["1/24",1/24],["1/32",1/32],["1/43",1/43],["1/64",1/64]] + for biLieV in arrBiLie: + biLie = biLieV[1] if biLie == 1/43: if realHeight < 140: continue @@ -155,9 +156,10 @@ if __name__ == '__main__': #取整 tempHeight = round(tempHeight) #拼接字符串 - tempHeight = str(tempHeight)+"_"+str(biLie) + tempHeight = str(tempHeight)+"_"+str(biLieV[0]) sizes.append(tempHeight) print(sizes) + break #main("print", pid, sizes) \ No newline at end of file