返回顶部

收藏

Int value demo

更多
number = input('Enter a number between 1 and 10: ')
if number <= 10:
    if number >= 1:
        print 'Great!'
    else:
        print 'Wrong!'
else:
    print 'Wrong!'

标签:Python,Data,Type

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-02-10 10:32:41Bit calculation: shift left by 风云轩
  2. 2017-03-13 21:15:13Mixed-type conversions by 山药
  3. 2017-04-04 13:23:59oct and hex function by xwz
  4. 2016-02-11 10:46:081 is true in Python by Solon.Ring
  5. 2016-05-30 16:25:19hex literals by jack.chen
  6. 2016-08-19 12:10:45In Python any non-zero integer value is true; zero is false. by 山药
  7. 2016-11-11 16:35:20Tools for Working with Lists by 司马
  8. 2016-08-19 12:27:56Complex Number Multiply: the Complex part by 司马
  9. 2016-09-04 09:12:19bitwise AND by 阮小七
  10. 2016-11-21 12:58:55Define and use int by 张宋付
  11. 2018-03-30 21:56:50java自动识别用户上传的文本文件编码 by Hugh

发表评论