def judge():
cost=0
#合成1级部分
l1_cost=0.75+0.05*8
l3_cost=0.39+10+13*l1_cost
l4_cost=(0.897+10+l3_cost+16*l1_cost)*(1/0.4878)
l6_cost=19.75+10+13*l4_cost
cost=l6_cost
print('花费为:'+(str)(cost))
if(cost<750.0):
print('自己合成合适')
else:
print('购买合适')
judge()请问老师这样可以吗