The C language for Python programmers --- PythoidC

March 9, 2010
12:18 a.m.
Hi, if you want to write and run C code in Python IDE with auto-completion if you want to introspect into C functions and data structs if you hate the {} and ; and the DOS window (console) Please take a look at: http://pythoidc.googlecode.com PythoidC is the C language like the Python, by the Python and for the Python
import c c.include(c.h.stdio) c.include(c.h.stdlib) '''Annotation is free!''' int fib(int n): if(n<=2): return1 else: return fib(n-1)+ fib(n-2) int main(int argc,char**argv): int n //C style annotation n=c.stdlib.atoi(argv[1]) c.stdio.printf('fibonacci(%d)=%d\n', n, fib(n))
5484
Age (days ago)
5484
Last active (days ago)
0 comments
1 participants
participants (1)
-
CHEN Guang