胡鸣谦 发表于 2021-5-31 19:05:29

02年的玩儿

Python 2.1.2 (#31, Jan 15 2002, 17:28:11) on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> print "Hello Python2.1"
Hello Python2.1
>>> 9999999*9999999999999999999999999
OverflowError: integer literal too large
>>> 9*9
81
>>> 123456789*123456789
Traceback (most recent call last):
File "<pyshell#3>", line 1, in ?
    123456789*123456789
OverflowError: integer multiplication
>>> 123345*123345
Traceback (most recent call last):
File "<pyshell#4>", line 1, in ?
    123345*123345
OverflowError: integer multiplication
>>> 1234*1234
1522756
>>> 99999*99999
Traceback (most recent call last):
File "<pyshell#6>", line 1, in ?
    99999*99999
OverflowError: integer multiplication
>>> 9999*9999
99980001
>>>
页: [1]
查看完整版本: 02年的玩儿