0

我是初学者。几天前我开始探索 Pythran 和 Transonic。我了解到 Pythran 从 Python 输入文件生成一个 C++ 文件。我想在后端读取那些 C++ 生成的文件。

你们中有人对访问后端生成的文件有任何想法吗?

我正在使用 Transonic 的支持实现 Pythran。

谢谢!

4

1 回答 1

0

您是否尝试过使用该--help选项运行 pythran?

...
optional arguments:
  -h, --help           show this help message and exit
  -o OUTPUT_FILE       path to generated file. Honors %{ext}.
  -P                   only run the high-level optimizer, do not compile
  -E                   only run the translator, do not compile
...

所以,答案是:使用-E选项

pythran my_python_file.py -E
于 2021-10-01T21:54:48.797 回答