# -- coding: utf-8 --
# 电影票
prompt = "\nThis theater charge different fees according to different ages."
prompt += "\nEnter your age, press 'quit' to exit the program! :"
age = input(prompt)
age = int(age)
# 1.条件测试
while age >= 0:
if age < 3:
液如闹 print("Your age is " + str(age) + ", and your charge is free." + "\n")
elif (age >= 3) and (age < 12):
橡森 print("Your age is " + str(age) + ", and your charge is 10." + "\n")
else:
print("Your age is " + str(age) + ", and your charge is 15." 闹罩+ "\n")
age -= 1
你好啊!我最近也在研究python。我在用条件测试时,为了终止循环用了自减运算符,但是这样编写是有问题的。可以一起讨论头论啊