Cython封装C++代码示例

时间:2020-04-11 05:15:16
【文件属性】:

文件名称:Cython封装C++代码示例

文件大小:55KB

文件格式:ZIP

更新时间:2020-04-11 05:15:16

Cython封装C

参考Cython官方文档编写而来的一个Cython封装C++的示例demo,可入门学习。


【文件预览】:
rect.cpp
rect_test.py
rect.pyd
先读我.txt
Rectangle.cpp
rect.pyx
rect.pxd
setup.py
Rectangle.h
build
----temp.win-amd64-3.4()
--------Release()

网友评论

  • Traceback (most recent call last): File "setup.py", line 4, in setup(ext_modules = cythonize( File "/home/turing/.local/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 966, in cythonize c_options = CompilationOptions(**options) File "/home/turing/.local/lib/python3.8/site-packages/Cython/Compiler/Main.py", line 563, in __init__ raise ValueError(message) ValueError: got unknown compilation option, please remove: sources
  • 还不错,给个赞
  • 很不错,值得尝试
  • 很好。非常值得学习