本练习题主要体会if 的用法。
if people >=dogs:
print"People are greater than or equal to dogs ."
if people <=dogs:
print"People are less than or equal to dogs."
if people =dogs:
print"people are equal to dogs."
该程序片段中,people =dog的情况在三条if语句中都有,所以在运行时,每一条都会实际运行,从而打印出相关语句。窃以为,既然有了第三条,那第二条和第一条可以去掉,以免混淆