ctypes.c_long(0L) 对于 Python 3x
ctypes.c_long(0L) for Python 3x
我正在运行从 Python 2x 到 Python 3x 的定位,我正在使用 ctypes。在 Python 2x 上,下面的代码 运行 完美:
ctypes.c_long(0L)
但是,0L 是 Python 3x 的无效语法。我有办法解决这个问题吗?
我正在运行从 Python 2x 到 Python 3x 的定位,我正在使用 ctypes。在 Python 2x 上,下面的代码 运行 完美:
ctypes.c_long(0L)
但是,0L 是 Python 3x 的无效语法。我有办法解决这个问题吗?