Найти - Пользователи
Полная версия: Перевод из Python в С и обратно
Начало » Python для новичков » Перевод из Python в С и обратно
1 2
artcrea
спасибо! решил перевести всё же сам.

помогите мне найти русскую документацию по синтаксису и готовым выражениям

интересуют вот такие выражения:
x = [filter(lambda y: ARR[x][y] == 1, range(N)) for x in range(N)]
x= {}
x= [x1, x2][y]
x = tuple(sorted(len(x1[y]) for y in x2[x]))
crchemist
хм. не витрачай марно часу, нічо в тебе не получиться
artcrea
Вдячний за твій оптимізм, але я завжди добиваюся чого хочу!
crchemist
Цікаво буде подивитись на результат.
crchemist
http://codespeak.net/pypy/dist/pypy/doc/translation.html
може поможе
The job of translation tool chain is to translate RPython programs into an efficient version of that program for one of various target platforms, generally one that is considerably lower-level than Python. It divides this task into several steps, and the purpose of this document is to introduce them.

As of the 1.0 release, RPython programs can be translated into the following languages/platforms: C/POSIX, LLVM/POSIX, CLI/.NET, Javascript and Java/JVM (in addition, there's a backend that translates application-level into interpreter-level code, but this is a special case in several ways).

The choice of the target platform affects the process somewhat, but to start with we describe the process of translating an RPython program into C (which is the default and original target).
artcrea
Спасибо! я обязательно отпишу как добьюсь или не добьюсь результата :)
lizzard
Немного не в тему, но можно попробовать swig или boost-python чтобы прикрутить к питону модули на с/c++ или наоборот.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB