天天看點

Python邏輯控制符及其條件判斷語句

# Python邏輯控制符
res = 1<2
res = 1<2<3
res ='name'=='NAME'
res = 'M' in 'NAME'
print(res)      
# 條件判斷語句
if 1<0:
    print('hello bigdate')
elif 1<3:
    print('hello lly')
else:
    print('hello nuoyanli')