我找不到导致此错误的错误。我正在使用Python 3.7。该代码是不言自明的:
TaxPay = (((SimpleFacialPrice * 5) + (HerbalFacialPrice * 8) + (AcneFacialPrice * 10) +(SmartFacialPrice * 12) + (DeliveryCost * 12)) * 0.2))
Cost = (((SimpleFacialPrice * 5) + (HerbalFacialPrice * 8) + (AcneFacialPrice * 10) +(SmartFacialPrice * 12) + (DeliveryCost * 12)))
CostofItems = "$ " + str("%.2f" % (TaxPay + Cost))
TotalCost.set(CostofItems)
y = random.randint(10034, 699812)
randomRef = str(y)
PaymentRef.set("BILL" + randomRef)
在每一行的末尾给出相同的错误
“预期语句的结尾”
答案 0 :(得分:1)
您是否不认为该语句有多余的括号“)” TaxPay =((((SimpleFacialPrice * 5)+(HerbalFacialPrice * 8)+(AcneFacialPrice * 10)+(SmartFacialPrice * 12)+(DeliveryCost * 12))* 0.2 ))