Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
无法在 python 中导入自定义 DLL
我正在尝试将 C 类公开给 pythonboost python 所以我正在经历本教程 http www boost org doc libs 1 61 0 libs python doc html tutorial tutorial ex
python
dll
ctypes
boostpython
pythoncapi
填充python ctypes指针
我有一个C函数uint8 t begin 它返回一个指向已分配内存的指针 这里有一个ctypes绑定到它 begin mylibrary begin begin argtypes begin restype ctypes POINTER c
python
ctypes
在 Mac 上的 Python 中创建消息框?
目前正在学习 Cybrary 的免费 Python 在线课程 我正在使用 3 6 进行编码 但我使用的是 Mac 而演示者使用的是 Windows 到目前为止 如果有的话 差异也很小 然而 当前部分涉及学习和使用 Ctypes 作业 说的是
python
MacOS
ctypes
MessageBox
python cdll找不到模块
我有一个由两个 dll 文件和一个 python 包装器组成的库 我目前的代码基于这三个文件 它们与我的主 python 文件位于同一父目录中 我现在尝试在继续开发之前重构一些东西 并希望将所述库代码移动到它自己的 lib 目录中 不幸的是
python
ctypes
使用 ctypes 访问变量数组的内容
我使用 ctypes 来访问读取 python 中 C 函数的文件 由于读取的数据巨大且大小未知 我使用 float in C int read file const char file int n int m float data 功能m
python
pointers
multidimensionalarray
ctypes
python 中的位域专业化
这是一段 C 代码 void sign extending int x int r resulting sign extended number goes here struct signed int x 5 s r s x x cout
python
ctypes
bitfields
signextension
Python可写缓冲区/内存视图到数组/字节数组/ctypes字符串缓冲区
Problem 固定大小记录的二进制数据 想要使用struct unpack from和struct pack into来操作二进制数据 不需要数据副本 想要内存中的多个视图来简单地抵消计算等 数据可以位于 array array byte
python
python27
Arrays
ctypes
使用python ctypes与nvapi交互(后续附演示代码)
这是我之前问题的后续 有关 python ctypes 和 nvapi 的帮助 https stackoverflow com questions 6163770 help with python ctypes and nvapi 我正在发
python
ctypes
NVIDIA
ctypes 中的 find_library()
我正在尝试使用 ctypes 中的命令 find library 但出现错误 我不明白其原因 我正在 Windows 上工作 这是代码 import ctypes from ctypes util import find library i
python
ctypes
在python中将ctypes结构转换为bytearray
有没有办法转换 Ctypes 结构 包括指向字节数组的指针 class SRamAccess ctypes Structure fields channel ctypes c uint offset ctypes c uint len ct
python
Arrays
ctypes
如何使用 ctypes 将 NumPy 复杂数组与 C 函数连接?
我在 C 中有一个函数 它接受一组复杂的浮点数并就地对它们进行计算 foo c void foo cmplx float array int length 复杂的浮点结构如下所示 typedef struct cmplx float flo
python
c
NumPy
ctypes
ctypes:将字符串转换为函数?
我正在读这篇文章在笔测试期间逃避防病毒软件的技巧 http pen testing sans org blog pen testing 2011 10 13 tips for evading anti virus during pen te
python
c
casting
ctypes
Metasploit
python中的用户指针
我正在尝试显示使用 v4l 捕获的网络摄像头的预览 下面是代码的大概样子 from ctypes import from v4l2 import from Image import fromstring from Tkinter impor
python
ctypes
v4l2
Python ctypes 和可变性
我注意到将 Python 对象传递给本机代码ctypes可以打破可变性预期 例如 如果我有一个 C 函数 如下所示 int print and mutate char str str 0 X return printf s n str 我这
python
ctypes
如何在ctypes python中传递char指针作为参数
请帮助我将以下 c 代码行转换为 ctypes python Ret openFcn Handle C Config xml 以下是各自的声明 typedef uint16 t OpenDLLFcnP void const char Ope
python
char
ctypes
如何使用 ctypes 将 byteArray 传递到以 char* 作为参数的 C 函数中?
我在 C 中创建了一个函数 它接受 int 大小和 char buffer 作为参数 我想使用 ctypes 从 python 调用此函数并传入 python byteArray 我知道首先必须将 C 文件编译成共享库 so 文件 并使用
python
c
sharedlibraries
ctypes
如何使用 Python 在 Windows 中创建符号链接?
我正在尝试创建symlinks在 Windows 8 上使用 Python 我发现这个帖子 https stackoverflow com questions 1447575 symlinks on windows这是我脚本的一部分 imp
python
operatingsystem
directory
ctypes
symlink
Python:将 IP 地址打包为 ctype.c_ulong() 以与 DLL 一起使用
给出以下代码 import ctypes ip 192 168 1 1 thisdll ctypes cdll aDLL thisdll functionThatExpectsAnIP ip 我怎样才能正确地将它打包为一个期望它作为 c u
python
dll
ipaddress
ctypes
构建自引用元组
在看到多年前的论坛上的一次从未解决的对话后 我想知道如何正确创建一个引用自身的元组 从技术上讲 这是一个非常糟糕的主意 因为元组应该是不可变的 一个不可变的对象怎么可能包含它自己呢 然而 这个问题不是关于最佳实践 而是关于 Python 中
python
tuples
ctypes
Creation
selfreference
python在类中的dll回调函数中访问self
我有一些 api 的 dll 函数 如下所示 def dllcallback items pass 我想在与 dll 回调链接的类函数中访问 self class myobject object def init self self a 9
python
ctypes
«
1
2
3
4
5
6
7
...10
»