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')

注:Python没有switch

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务