【发布时间】:2013-07-28 05:16:49
【问题描述】:
clothes_total = tot1 + tot2 + tot3 + tot4+ tot5
clothes_total1 = tot1 + tot2 + tot3+ tot4 + tot5
tot_price = tax * (clothes_total + shipping + gift_number)
tot_price1 = tax * (clothes_total1 * 0.85 + shipping + gift_number)
tot_price2 = tax * (clothes_total2 * 0.85 + shipping + gift_number - 30)
print "<h4>Original Price: $ %s </h4>" % clothes_total
if clothes_total < 150:
print "<h4> TOTAL : %s </h4>" % tot_price
else clothes_total1 > 200:
print "15% Discount + $30 off: $"
print 0.85 * (clothes_total - 30)
print "<h4> THIRTY: $ %s </h4>" % tot_price2
这是我的代码行,但在else clothes_total1 > 200: 下,我不断得到:
无效的语法错误
不知道是什么问题。有人可以帮我帮忙吗?谢谢。
【问题讨论】:
-
它有效!非常感谢!