gpt4 book ai didi

python - 有没有像 ctypes wilndll 那样调用 Mac OS 框架的 python 函数?

转载 作者:太空宇宙 更新时间:2023-11-03 14:28:03 25 4
gpt4 key购买 nike

是否有像 ctypes wilndll 那样调用 Mac OS 框架的 python 函数?

我正在尝试构建botu win和mac OS应用程序,因为硬件制造商发布了具有几乎相同结构和功能的.dll和.framework。OS X 中是否有与 ctypes 等效的东西?

最佳答案

ctypes 是 Python 的外部函数库。它提供与 C 兼容的数据类型,并允许调用 DLL 或共享库中的函数。它可用于将这些库包装在纯 Python 中。

https://docs.python.org/3/library/ctypes.html

关于python - 有没有像 ctypes wilndll 那样调用 Mac OS 框架的 python 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47482674/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com