>>>> a = ffi.cast('int', 10)
>>>> <cdata 'int' 10>
我想知道'a'的值的类型。我输入了“dir(a)”之类的东西,但我找不到任何方法来做到这一点。我想要一个像下面这样的功能
>>>> gettypeofcdata(a)
>>>> 'int'
但是我不确定pypy的cffi是否有这种功能。有人知道吗?
>>>> a = ffi.cast('int', 10)
>>>> <cdata 'int' 10>
我想知道'a'的值的类型。我输入了“dir(a)”之类的东西,但我找不到任何方法来做到这一点。我想要一个像下面这样的功能
>>>> gettypeofcdata(a)
>>>> 'int'
但是我不确定pypy的cffi是否有这种功能。有人知道吗?