Code for Handling Large maxints,handlingmaxints,from sys imp
文章由Byrx.net分享于2019-03-23 06:03:11
Code for Handling Large maxints,handlingmaxints,from sys imp
from sys import *z = long ( maxint )z1 = -zprint '32-bit machine:'print 'maxint:', z, '-maxint:', -z, '(2 ** 31L) -1:', (2 ** 31L) -1print '-----------------------------------------------------------------'y = (2 ** 63L) - 1print '64-bit machine:'print 'maxint:', y, '-maxint:', -yprint '-----------------------------------------------------------------'z = (2 ** 127L) - 1print '128-bit machine:'print 'maxint:', z, '-maxint:', -z
相关内容
- Use ( ) in calculation,useincalculation,a = 3
- Save standard to a varible,standardvarible,import syste
- Comment in Python,commentinpython,## This is #
- elif demo,elif,num = input(
- Import a pre-defined module,importpre-defined,#//File: mod
- Module import,moduleimport,#File: perso
- Statement: pass,statementpass,# The pass s
- The type Function,thetypefunction,#returns the
- Small 'u' in front of the quote indicates that an Uni
- Assigning Multiple Values at Once,assigningmultiple,v = ('a', 'b
评论关闭