tangbinde 发表于 2018-8-12 08:45:20

python练习-elif

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