约 51 个结果
在新选项卡中打开链接
  1. Convert Python program to C/C++ code? - Stack Overflow

    2015年6月27日 · is it possible to convert a Python program to C/C++? I need to implement a couple of algorithms, and I'm not sure if the performance gap is big enough to justify all the pain I'd go through …

  2. "OverflowError: Python int too large to convert to C long" on windows ...

    In Python 2 a python "int" was equivalent to a C long. In Python 3 an "int" is an arbitrary precision type but numpy still uses "int" it to represent the C type "long" when creating arrays. The size of a C long …

  3. Example program of Cython as Python to C Converter

    2015年12月27日 · 15 I found here and here that one can use Cython to convert Python to C, but I cannot find any step-by-step example. Let's say I have a simple function: foo.pyx

  4. How do I convert a Python list into a C array by using ctypes?

    How do I convert a Python list into a C array by using ctypes? Ask Question Asked 15 years, 3 months ago Modified 3 years, 9 months ago

  5. Tool to convert python to c# - Stack Overflow

    2012年7月7日 · Is there any tool or way in which I can convert or translate python code to c# code?

  6. How can I convert Python boolean object to C int (or C++ boolean ...

    Now I would like to convert it to C++ somehow. Doing this with strings isn't so hard, there is a helper function for that - PyBytes_AsString that converts python string into C string. Now I need something …

  7. Converting ctype float to python float properly - Stack Overflow

    2022年3月16日 · 2 I am receiving a ctype c_float via a C library that I would like to convert to a regular python float. The problem is that ctype uses 32 bit precision while python uses 64 bit precision. Say a …

  8. How to convert python integers into c integers? - Stack Overflow

    2020年11月1日 · How tThere are many threads about going from a c language integer to python integer, but none that i can find vice versa. I am using a native c library, opengl, ported into python pyopengl. …

  9. How to convert python source code to C++ source code

    2015年8月3日 · For example, Python has a large standard library, C++ doesn't have the same library. How do you translate those calls? More fundamentally, the semantics of the language are very …

  10. How to convert Python float array using ctypes? - Stack Overflow

    2023年1月5日 · Change your C function to accept double * as parameter for this x_spots thing. That's probably the best way, with your, probably 64 bits computer. But you seem to say that you can't …