dongchangxi 11 months ago
parent
commit
bbc53e4321
  1. 8
      tools/cal_weight_excel.py

8
tools/cal_weight_excel.py

@ -141,8 +141,9 @@ if __name__ == '__main__':
sizes = [] sizes = []
#根据真实身高计算不同的比例的高度 #根据真实身高计算不同的比例的高度
arrBiLie = [1/4,1/6.1/8,1/10,1/12,1/16,1/18,1/24,1/32,1/43,1/64] 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 biLie in arrBiLie: for biLieV in arrBiLie:
biLie = biLieV[1]
if biLie == 1/43: if biLie == 1/43:
if realHeight < 140: if realHeight < 140:
continue continue
@ -155,9 +156,10 @@ if __name__ == '__main__':
#取整 #取整
tempHeight = round(tempHeight) tempHeight = round(tempHeight)
#拼接字符串 #拼接字符串
tempHeight = str(tempHeight)+"_"+str(biLie) tempHeight = str(tempHeight)+"_"+str(biLieV[0])
sizes.append(tempHeight) sizes.append(tempHeight)
print(sizes) print(sizes)
break
#main("print", pid, sizes) #main("print", pid, sizes)
Loading…
Cancel
Save