小编Tru*_*rux的帖子

AttributeError:模块'sys'没有属性'maxint'

我正在尝试使用Python 3.7运行以下代码:

import sys
print(sys.maxint)
Run Code Online (Sandbox Code Playgroud)

但是我收到一个错误:

D:\Python3.7\python.exe "D:/PyCharm 2017.2.3/Workplace/maximizer.py"
Traceback (most recent call last):
File "D:/PyCharm 2017.2.3/Workplace/maximizer.py", line 2, in <module>
    print(sys.maxint)
AttributeError: module 'sys' has no attribute 'maxint'
Run Code Online (Sandbox Code Playgroud)

我如何解决它?

python sys python-3.x

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×1

python-3.x ×1

sys ×1