好的,我接受了这个挑战,以便进行一些编程。
然而,我遇到了一些问题。
adtprice = {19.99 , 49.99}
chldprice = adtprice * (3/4) - 7.5
以下是我得到的错误结果。
Traceback (most recent call last):
File "C:/Users/Owner/Desktop/Programming Scripts/park.py", line 2, in <module>
chldprice = adtprice * (3/4) - 7.5
TypeError: unsupported operand type(s) for *: 'set' and 'float'
我希望这个内容简单易用,因为我会经常使用adtprice和chldprice。
array
,而是一个 set。这是不同的。 - stalk