![]() | 1 wwqgtxx 2021-12-25 12:22:19 +08:00 你需要的是 pointer 而不是 byref https://docs.python.org/3/library/ctypes.html#pointers |
![]() | 3 wwqgtxx 2021-12-25 20:55:51 +08:00 @19930618 人家就是个指针,你接着把这个 pointer 传给别的需要这个 nHandle 的函数不就行了,真的想拿到值就调用 .contents 呗,文档写的不是够清楚的了,还是说你需要看一份中文文档? https://docs.python.org/zh-cn/3/library/ctypes.html#pointers |