age =12
if age<65:
price = 10
elif age>=65:
price = 5
print("Your admission cost is $",+ str(price) +".")
运行结果是bad operand type for unary +: 'str'
多了个逗号
age = 12
if age < 65:
price = 10
elif age >= 65:
price = 5
print("Your admission cost is $" + str(price) + ".")
感谢