'int' object has no attribute 'long'
时间: 2023-10-27 07:06:26 浏览: 238
AttributeError: ‘NoneType’ object has no attribute ‘children’ 错误
5星 · 资源好评率100%
This error occurs when you try to access the 'long' attribute of an integer (int) object in Python. The 'long' attribute is used in Python 2 to represent an integer of arbitrary size, but it is no longer used in Python 3.
To fix this error, you can simply remove the 'long' attribute from your code. If you are using Python 2, you can use the 'long' attribute to represent integers of arbitrary size. However, if you are using Python 3, you should use the 'int' attribute to represent integers.
阅读全文