python ctypes库 pointer POINTER有什么区别?

pointer(struct)时就会提示要输入c的类型,但是POINTER()就不会

不知道你这个问题是否已经解决, 如果还没有解决的话:
  • 这篇博客: 理解pointer in Python中的 Pointers with ctypes 部分也许能够解决你的问题, 相关内容:

    Using

    ctypes module, we can create real pointers in Python.

    The pointer we implemented with ctypes are real pointers.

    You can simulate Pointers in Python, or create real C-style pointers in Python.

    The real reason you would use ctypes is if you needed to make a function call to a C library that requires a pointer.

    《理解ctypes模块in Python》


如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^