返回顶部

收藏

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. 2015-12-15 17:38:40Assigning Consecutive Values by 西国の海妖
  3. 2016-02-04 14:22:21Read numbers till eof and show squares by jack.chen
  4. 2016-02-15 09:12:11Splitting Pathnames by 蟋蟀MM
  5. 2016-03-14 10:53:24Introducing and by 司马
  6. 2016-03-22 09:29:52When the and-or Trick Fails by 蟋蟀MM
  7. 2016-04-23 17:38:07Small 'u' in front of the quote indicates that an Unicode string by xwz
  8. 2016-05-30 20:53:42Operator Precedence by wubai
  9. 2016-08-19 20:21:01Loop can be applied to any 'iterable' object by 西国の海妖
  10. 2016-08-20 10:10:54While loop by 大猪
  11. 2016-08-20 13:30:31truncating division by wubai

发表评论