小编moh*_*mad的帖子

用打印函数参数编译cython错误

当使用cython从helloworld.pyx创建helloworld.c时,发生此错误:

    error compiling Cython file:
------------------------------------------------------------
...
print('hello world',end='')
                      ^
------------------------------------------------------------

p21.pyx:1:23: Expected ')', found '='
Run Code Online (Sandbox Code Playgroud)

我创建helloworld.c的命令是:

cython3 --embed p21.pyx
Run Code Online (Sandbox Code Playgroud)

cython python-3.x

14
推荐指数
3
解决办法
3469
查看次数

标签 统计

cython ×1

python-3.x ×1