Cython抛出语法错误

时间:2018-02-22 11:54:10

标签: python c++ cython

我正在学习cython,同时尝试编写一个类似于"的simlpe语句的程序。 int f = 9"它的投掷错误。

cython test.pyx

int f=9   

test.pyx:2:4:简单语句列表中的语法错误

1 个答案:

答案 0 :(得分:1)

cdef int f = 9

请参阅Typing Variables documentation

相关问题