我该如何解决这个错误:
Traceback (most recent call last):
File "C:\Users\Tony\Desktop\Python\4.py", line 64, in
print "YOU PAY: $",(pc-total)
TypeError: unsupported operand type(s) for -: 'str' and 'float'
我该如何解决这个错误:
Traceback (most recent call last):
File "C:\Users\Tony\Desktop\Python\4.py", line 64, in
print "YOU PAY: $",(pc-total)
TypeError: unsupported operand type(s) for -: 'str' and 'float'