Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何在 Windows 上查找当前系统缓存大小?
到处搜索 但未能找到 API 调用来检索 Windows 上 文件 系统缓存的当前大小 全局内存状态Ex https stackoverflow com a 2017659 450917 检索总计 免费 已用和交换统计数据 获取系统文件缓存
python
c
Windows
WINAPI
ctypes
Python ctypes,C++ 对象销毁
考虑以下 python ctypes c 绑定 C class A public void someFunc A A new return new A void A someFunc A obj obj gt someFunc void A
c
python
ctypes
在读/写二进制数据结构时访问位域
我正在为二进制格式编写一个解析器 这种二进制格式涉及不同的表 这些表同样采用二进制格式 通常包含不同的字段大小 其中 50 100 个之间 大多数这些结构都有位域 并且在 C 语言中表示时看起来像这样 struct myHeader uns
python
struct
ctypes
binarydata
bitfields
如何在 Linux 上调用 Python 中的内联机器代码?
我正在尝试从 Linux 上的纯 Python 代码调用内联机器代码 为此 我将代码嵌入到字节文字中 code b x55 x89 xe5 x5d xc3 然后打电话mprotect http www kernel org doc man
python
Linux
ctypes
mprotect
为什么添加多重处理会阻止 python 找到我编译的 c 程序?
我目前正在寻求利用多处理的力量来加速我的代码 然而 当我从 python 调用编译后的代码时遇到了一些问题 因为当编译后的文件包含任何形式的多处理时 它似乎从代码的视图中消失了 例如 使用以下测试代码 include
python
c
multiprocessing
ctypes
filenotfound
SWIG 的 Python ctypes 回调函数
我有一个 SWIG C 函数 它需要一个函数指针 WNDPROC 并且想给它一个由 ctypes WINFUNCTYPE 包装的 Python 函数 在我看来 这应该是兼容的 但 SWIG 的类型检查会引发异常 因为它不知道 ctypes
c
python
SWIG
ctypes
(不再寻求答案)消息框内的Python输入框
有什么方法可以在使用 ctypes 库打开的消息框内输入框吗 到目前为止我有 import ctypes messageBox ctypes windll user32 MessageBoxA title Title text Messag
python
ctypes
MessageBox
python 可以从 C 头文件加载定义吗?
我正在围绕 C API 编写一个 python 包装器 我有一个广泛的 API 描述 现在我正在努力实现头文件中定义的枚举 假设我里面有一个 C API 函数myAPI dll 它接受枚举作为参数 例如 void SomeFunction
python
ctypes
headerfiles
C 结构体的 Python ctypes 定义
我正在尝试调用 Matlab 编码器生成的一些 C 代码 Matlab 使用名为 emxArray 的 C 结构体来表示矩阵 记录如下 http www mathworks co uk help fixedpoint ug c code i
python
ctypes
matlabcoder
在python中使用tesseract 3.02的C API与ctypes和cv2
我正在尝试在 python 中将 Tesseract 3 02 与 ctypes 和 cv2 一起使用 Tesseract 提供了一组公开的 DLL C 风格 API 其中之一如下 TESS API void TESS CALL TessB
python
opencv
ctypes
Tesseract
Python ctypes 指向结构体指针的指针
我在获取指向工作结构的指针时遇到问题 这是我抛出异常 ArgumentError 参数 1 预期 LP LP List 实例而不是指向 LP LP List 的指针 的代码 class List Structure fields head
python
ctypes
ctypes 包装“MessageBoxA”示例在 python33 中不起作用
此示例位于 python 3 3 2 文档中 http docs python org 3 library ctypes html highlight ctypes ctypes http docs python org 3 library
python
ctypes
python ctypes - 传递 numpy 数组 - 奇数输出
我正在使用 ctypes 并将 ndarray 传递给 c 函数 它给了我一个奇怪的输出行为 这是一些代码 C 功能 int foo int foo int N for int i 0 i
python
NumPy
ctypes
使用 IOCTL_DISK_SET_DRIVE_LAYOUT 创建分区后,如何在这个新创建的分区中创建新卷?
我正在尝试创建一个新分区 对其进行格式化并通过 Python ctypes 为其分配一个新的驱动器号 使用IOCTL SET DRIVE LAYOUT http msdn microsoft com en us library window
python
ctypes
ioctl
访问 ctypes 结构中的 np.array
我有一个带有动态分配数组的 ctypes 结构 即 array 1d double npct ndpointer dtype np double ndim 1 flags CONTIGUOUS class Test Structure fi
python
NumPy
ctypes
直接在Scipy稀疏矩阵上使用Intel mkl库以更少的内存计算A点A.T
我想打电话mkl mkl scsrmultcsr https software intel com en us node 468640来自蟒蛇 目标是计算稀疏矩阵 C压缩稀疏行 http docs scipy org doc scipy 0
python
scipy
ctypes
sparsematrix
intelmkl
使用 ctypes 从 python 调用 C 函数
我有以下 C 代码 我正在尝试使用Python从Python调用这个函数ctypes int add int arr printf number d n arr 0 arr 0 1 return arr 0 我用以下方法编译了这个 gcc
python
c
Call
Wrapper
ctypes
使用 COM 对象的 Python ctypes 和 DLL
在 Windows 下 我尝试使用第 3 方 DLL SomeLib dll 使用 Python 2 7 用 C 编程ctypes 对于其某些功能 该库使用另一个 COM DLL SomeCOMlib dll 它本身使用其他DLL LibA
python
dll
com
ctypes
使用 IntEnum 作为 ctypes.Structure._fields_ 中的类型
我想成为我的领域之一ctypes Structure一个枚举 这post http www chriskrycho com 2015 ctypes structures and dll exports html建议添加一个from para
python
enums
ctypes
Ctypes 在使用 CMake 创建的共享库中找不到符号
我在 linux 中创建共享库的 CMake 设置类似于 SET CMAKE CXX FLAGS fPIC SET LIB UTILS SRC Utils cpp ADD LIBRARY UTILS SHARED LIB UTILS SRC
c
python
CMake
ctypes
1
2
3
4
5
6
...10
»