answer=int(raw_input("enter the number1:"))
if answer>=10:
print "you got at least 10!"
elif answer>=5:
print "you got at least 5!"
elif answer>=3:
print "you got at least 3!"
#当第一个if结果为假,则进行另一次判断(elif=否则如果)
转载于:https://blog.51cto.com/huzhongliang/1890466