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:
下,我不斷收到:無效的Python語法錯誤(2.7.5)
無效的語法錯誤
不知道是什麼問題是。有人可以幫助我嗎?謝謝。
它的工作原理!非常感謝! – James