python且、或

python 且 或

  • and
  • or

and

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

or

x = 5
y = 10

if x > 3 or y < 5:
    print("At least one condition is true")
else:
    print("Both conditions are false")

你可能感兴趣的:(python,python,前端,数据库)