Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Python ctypes:带有 LPCSTR [out] 参数的原型
我目前正在进入ctypes模块 我正在尝试调用 user32 函数GetWindowText http msdn microsoft com en us library windows desktop ms633520 28v vs 85
python
WINAPI
prototype
ctypes
user32
使用 ctypes/cffi 解决循环共享对象依赖关系
我想用cffi 甚至ctypes如果我必须 从 Linux 上的 Python 3 访问 C ABI 该API由许多实现 so文件 我们称它们为libA so libB so and libC so 这样libA包含主要导出函数 其他库提供
python
ctypes
circulardependency
dlopen
pythoncffi
通过 Ctypes 将 std:vector 从 C++ 传递到 Python:获取无意义的值
我试图遵循程序 https stackoverflow com a 14887649 8408902但我被困住了 我正在尝试通过std vector来自我的 C 代码 包含在extern C 到Python 这就是我所拥有的 extern
python
c
ctypes
从 Python (ctypes) 到 C 的指针以保存函数输出
我是 Python 中 C 集成的新手 我目前正在将 dll 库包装到我的 Python 代码中 使用ctypes我在传递指针来保存特定函数的输出时遇到问题 我的 C 函数具有以下结构 function int w int h 无符号短 d
python3x
ctypes
如何访问作为 numpy 数组传递给 ctypes 回调的数组?
我正在尝试使用 numpy 和 ctypes 将一些用 C 编写的数字代码集成到 Python 库中 我已经开始进行实际计算 但现在想将算法中间步骤的进度报告给 Python 代码中的回调函数 虽然我可以成功调用回调函数 但无法检索x数组传
python
NumPy
ctypes
多处理.RawArray 操作
我读到了RawArray可以在进程之间共享而无需复制 并且想了解它在Python中是如何实现的 我看到在共享ctypes py https github com python cpython blob master Lib multipro
python3x
multiprocessing
ctypes
mmap
如何将具有多个依赖项的 C 库编译到 Python 包中? Cmake?
我在 python3 x 中有一个 Python 包 我一直在编写它 它与 C 库中的两个 C 函数交互 目前 我一直在使用ctypes我直接链接到共享库 so 然后使用 python 脚本与之交互 https docs python or
python
python3x
pip
ctypes
pythonpackaging
Python Ctypes Null 终止字符串块
我正在使用 ctypes 实现使用登录创建进程 http msdn microsoft com en us library ms682429 aspx 一切正常 除了我不知道如何处理这一部分 指向新进程的环境块的指针 如果该参数为NULL
python
ctypes
ctypes 结构中的默认值
在 ctypes 结构中 是否可以指定默认值 例如 使用常规 python 函数 您可以执行以下操作 def func a b 2 print a b 这将允许这种行为 func 1 prints 3 func 1 20 prints 21
python
parameters
Structure
default
ctypes
Python ctypes:如何将 C 函数的行输出传递到 pandas DataFrame 中?
我的问题是如何通过 ctypes 将 C 函数的制表符分隔输出解析为 pandas DataFrame 我正在使用 ctypes 在 Python3 x 中围绕 C 库编写一个 Python 包装器 C 库当前执行数据库查询 我正在访问的C
python
c
pandas
ctypes
pythoncapi
Python ctypes 参数与 DLL - 指向双精度数组的指针
我是一名使用 Python 中的 ctypes 的新手编码人员 并尝试使用用 C 编写的 DLL 中的函数 我在 SO 上发现了很多与我类似的问题 但没有任何答案可以回答此类难题 我已经很好地加载了 DLL 但是我需要调用的函数之一需要一个
python
c
dll
ctypes
通过内省打印 ctypes“Structure”的所有字段
test c include
python
Reflection
ctypes
_ctypes.cpython-39-x86_64-linux-gnu.so:未定义符号:使用 dlopen 加载的嵌入式 Python 中的 PyFloat_Type
我在 ubuntu 20 04 中使用嵌入式 Python 3 9 并尝试导入 ctypes 这会产生错误 ctypes cpython 39 x86 64 linux gnu so undefined symbol PyFloat Typ
python
Ubuntu
ctypes
pythonembedding
使用 ctypes 从 Python 调用 fortran 函数
我希望使用 ctypes 来调用一些旧的 Fortran 库 这些库是我老板几年前编写的 我按照中给出的例子进行操作上一个问题 https stackoverflow com questions 5811949 call functions
python
Fortran
ctypes
Python ctypes 使用 winmode 加载 DLL
我安装了一个 C API 应用程序 其中包含几个 DLL A DLL and B DLL 在我的程序文件夹中 A DLL依赖于B DLL 我可以成功加载它们ctypes WinDLLIF 从安装文件夹中 例如C Programs Files
python
ctypes
Python ctypes:复制结构的内容
我想用 ctypes 在 Python 中模仿一段 C 代码 代码如下 typedef struct int x int y point void copy point point a point b a b 在 ctypes 中不可能执行
pointers
copy
python
ctypes
使用 ctypes 从 Python 调用带有 Char** 参数的 C 方法
我需要一种使用 ctypes 库将数组从 Python 传递到 char 的方法到 C 库 我尝试过的一些方法导致我出现分段错误 另一些则导致垃圾信息 由于我已经在这个问题上苦苦挣扎了一段时间 我决定写一个小指南 以便其他人可以受益 有这段
python
c
pointers
char
ctypes
将 FILE * 从 Python / ctypes 传递到函数中
我有一个库函数 用 C 编写 它通过将输出写入到来生成文本FILE 我想用 Python 2 7 x 包装它 并使用创建临时文件或管道的代码 将其传递到函数中 从文件中读取结果 并将其作为 Python 字符串返回 这是一个简化的示例来说明
python
c
ctypes
Py_Initialize 运行需要哪些文件?
我正在编写一段简单的代码 该代码从 C C 应用程序运行 Python 函数 为了做到这一点 我设置了 PYTHONPATH 并运行初始化 如下所示 Py SetPythonHome Python27 Py InitializeEx 0 然
python
c
ctypes
Embedding
MacOS:ModuleNotFoundError:没有名为“_ctypes”的模块
我在 pyenv 环境中使用 python 和 pip 但是当我尝试使用 pip 安装 numpy 时 pip install numpy 我收到以下错误 有人知道我哪里出错了吗 使用缓存的 numpy 1 21 0 zip 收集 nump
python
pip
ctypes
pyenv
«
1
2
3
4
5
6
...10
»