Chinaunix首页 | 论坛 | 博客
  • 博客访问: 37819
  • 博文数量: 22
  • 博客积分: 505
  • 博客等级: 下士
  • 技术积分: 235
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-28 18:18
文章分类

全部博文(22)

文章存档

2013年(3)

2012年(19)

我的朋友

分类: Python/Ruby

2012-02-29 13:49:20

  1. #!/usr/bin/python
  2. a=7
  3. sun=True
  4. while sun:
  5.         b=int(raw_input('Input a number:'))
  6.         if b==a:
  7.            sun=False
  8.            print "good!"
  9.         elif b>a:
  10.            print "it is small"
  11.         else:
  12.            print "it is big"
  13. else:
  14.         print "byb!"



阅读(281) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~