python - 如何在Python中声明类型为 "uint8_t"*的变量

标签 python c data-structures arduino

在 Python 中声明“uint8_t”* 类型的变量的最佳方法是什么?

uint8_t 管道编号;

第 182 行

https://github.com/maniacbug/RF24/blob/master/examples/starping/starping.pde

最佳答案

ctypes 库将帮助您将 Python 与 C 库连接起来,请参阅 ctypes library documentation 。您可能想使用 c_ubytec_ushort 类型。

关于python - 如何在Python中声明类型为 "uint8_t"*的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27785137/

相关文章:

python - django - 有什么方法可以替代抽象类的 ForeignKey?

python - 区分paramiko中的文件或目录

c - 学习C,segfailt混淆

c - *p 是左值还是右值

c++ - 创建在 C++ 结构体中声明的数组 a[1] 的多个实例

python - Django 多步表单向导模型表单

Python 多处理 : Only one process is running

C - 循环遍历所有可能的小写字符串

algorithm - 具有给定节点指针的恒定时间后继者和前任者的平衡树?

c++ - 我们如何将 int* 的地址传递给使用 void ** 作为参数的函数?