两个“elif”
新手报到,请问python里可以连续用两个“elif”语句吗
age=70
if age <= 4:
price = 0
elif age <18:
price = 25
elif age < 65:
price = 40
else:
price = 20
print(f"Your admission cost is ${price}")
https://blog.
你的问题百度一下即可