当前位置:   article > 正文

python且、或_python 且

python 且

python 且 或

and

i=1
j=2
if i==1 and j==2:
   print('且')
  • 1
  • 2
  • 3
  • 4

or

x = 5
y = 10

if x > 3 or y < 5:
    print("At least one condition is true")
else:
    print("Both conditions are false")
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/800147
推荐阅读
相关标签
  

闽ICP备14008679号