根据学习来做一些简单的实验,顺带复习下。。
#!/usr/bin/python number=23 guess=int(raw_input("Enter an integer:")) if guess==number: print "guess=number!" elif guess<number: print "no" else: print "guess>number"