【问题标题】:Cython throwing syntax errorCython 抛出语法错误
【发布时间】:2018-02-22 11:54:09
【问题描述】:

我正在学习 cython,并且在尝试编译具有类似“int f = 9”之类的 simlpe 语句的程序时抛出错误。

cython test.pyx

int f=9   

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

【问题讨论】:

    标签: python c++ cython


    【解决方案1】:

    cdef int f = 9

    Typing Variables documentation

    【讨论】:

      猜你喜欢
      • 2016-10-31
      • 2023-03-20
      • 2019-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-23
      • 2014-06-06
      相关资源
      最近更新 更多