1.and 、or、in、not in
'''
条件测试
'''
age0 = 22
print(age0>=22)
age0 = 22
age1 = 18
print(age0>=21 and age1>=21)
print(age0>=21 or arg0>=21)
fruits = ['apple','banana','orange']
print('apple' in fruits)
print('apple' not in fruits)
2.if语句
'''
简单的if语句(仅包含一个测试和一个操作)
'''
height = 1.7
if height>=1.3:
print('高')
'''
if-else
'''
height = 1.8
if height<=1.4:
print('免票')
else:
print('全票')
'''
if-elif
'''
height = 1.5
if height>=1.4:
print('嘿嘿')
elif height>=1.3:
print('呵呵')
'''
if-elif-else
'''
height = 1.8
if height<=1.4:
print('免票')
elif height>1.4 and height<=1.7:
print('半票')
else:
print('全票')