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!"else: print"you got less than 3!"
#以上所有都为假,可以使用else给出一个结果
本文共 289 字,大约阅读时间需要 1 分钟。
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!"else: print"you got less than 3!"
#以上所有都为假,可以使用else给出一个结果
转载于:https://blog.51cto.com/huzhongliang/1890477