L29 如果(If)
If语句的练习:
#coding:utf-8
people = 20
cats = 30
dogs = 15
#下面这个用还有not的符合布朗式做判断条件
if not (1 == 10 or 3 == 4):
print "Too many cats! The world is doomed!"
if people > cats:
print "Not many cats! The world is saved!"
if people < dogs:
L29 如果(If)
If语句的练习:
#coding:utf-8
people = 20
cats = 30
dogs = 15
#下面这个用还有not的符合布朗式做判断条件
if not (1 == 10 or 3 == 4):
print "Too many cats! The world is doomed!"
if people > cats:
print "Not many cats! The world is saved!"
if people < dogs: