返回顶部

收藏

Displaying location, type and value for an int

更多
integer1 = raw_input( 'Enter first integer:\n' )                        

integer1 = int( integer1 )                                              # convert the string to an integer
print 'integer1: ', id( integer1 ), type( integer1 ), integer1

标签:Python,基础

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2012-11-05 21:59:42java获得随机数代码 by 怪兽狂殴奥特曼
  2. 2014-10-22 16:26:45生成回文数 by 山药
  3. 2014-11-05 12:45:55Extended Euclid Algorithm by 风云轩
  4. 2014-11-09 13:08:09翻转 by 大猪
  5. 2014-11-18 21:51:35python实例 盖房子种树记好时间 by Solon.Ring
  6. 2015-02-23 09:40:23ubuntu安装python3的python-pip by 甄码农
  7. 2015-12-15 17:38:40Assigning Consecutive Values by 西国の海妖
  8. 2016-02-04 14:22:21Read numbers till eof and show squares by jack.chen
  9. 2016-02-15 09:12:11Splitting Pathnames by 蟋蟀MM
  10. 2016-03-14 10:53:24Introducing and by 司马
  11. 2016-03-22 09:29:52When the and-or Trick Fails by 蟋蟀MM

发表评论