Python input()

来源:互联网 发布:网络教育取消学籍 编辑:程序博客网 时间:2024/05/16 07:04

print 'What do you think I am?'this=input()if this<5 or this>5:    print 'You are wrong!'if this==5:    print 'oh,yes!'print 'How old are you?'age=input()if (age==24):    print 'oh,yes!'if  (age>24 or age<24):    print 'You are wrong!'





结果:

>>>What do you think I am?
4
You are wrong!
How old are you?
7
You are wrong!

0 0
原创粉丝点击