使用ctypes数组作为numpy数组时的PEP

使用ctypes数组作为numpy数组时的PEP

本文介绍了使用ctypes数组作为numpy数组时的PEP 3118警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将ctypes数组用作numpy数组时,收到以下警告消息:

I'm getting the following warning message when I try to use a ctypes array as a numpy array:

中来解决此问题。 code>。

You can also try working around the issue by wrapping the ctypes object in buffer().

这篇关于使用ctypes数组作为numpy数组时的PEP 3118警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 23:22