1
This commit is contained in:
1 parent
c45d3c27ec
commit
bbc53e4321
1 file changed
+5
-3
@@ -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)
|
||||
Reference in new issue
Block a user