发表于 2018-8-15 13:10:57

python练习-if-elif-else

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!"
页: [1]
查看完整版本: python练习-if-elif-else