当使用 cython 从 helloworld.pyx 创建 helloworld.c 时,出现此错误:
error compiling Cython file:
------------------------------------------------------------
...
print('hello world',end='')
^
------------------------------------------------------------
p21.pyx:1:23: Expected ')', found '='
我创建 helloworld.c 的命令是:
cython3 --embed p21.pyx