问题
Is there any free Python to C translator? for example capable to translate such lib as lib for Fast content-aware image resizing (which already depends on some C libs) to C files?
回答1:
I think that cython is what you're looking for http://www.cython.org/
回答2:
Shedskin translates Python code to C++.
回答3:
The fantastic PyPy project which aims to: "translate a Python-level description of the Python language itself to lower level languages", has a C backend. That is one of the lower level languages it aims to translate programs to is C.
来源:https://stackoverflow.com/questions/2639195/is-there-any-free-python-to-c-translator