二:流程控制if判断
一个等号赋值,两个等号判断
if 条件1 elif 条件2 elif 条件3 else: 条件1根本不成立才会成立2,3个条件里面有一个成立就不会成立其他
函数的嵌套
cls='human'
sex='female'
age=18
is_success=False
if cls == 'human' and sex == 'female' and age > 16 and age < 22:
print('开始表白...')
if is_success:
print('在一起')
else:
print('我逗你玩呢....')
else:
print('阿姨好')
print('end....')
流程控制之while循环,这事不断重复的过程