擅长:python、mysql、java
<p>据我所知,你不能嵌套声明,而且Cython根本不支持匿名联合。在</p>
<p>尝试以下操作:</p>
<pre><code>cdef union mystruct_union:
double lower_d
uint64_t lower
cdef struct mystruct:
mystruct_union un
</code></pre>
<p>现在以<code>un.lower_d</code>和<code>un.lower</code>的形式访问联合成员。在</p>