简体   繁体   English

是否可以在 pycharm 的 python 中包含 c 代码?

[英]Is it possible to include c code in python in pycharm?

I'm trying to speed up some code that I have written in Python and have thought about writing some code in C to do so.我正在尝试加速我在 Python 中编写的一些代码,并考虑在 C 中编写一些代码来这样做。 However, I am using PyCharm and its supported languages section,https://www.jetbrains.com/help/pycharm/supported-languages.html doesn't mention C, meaning no option to just create a C file and then import it into python. However, I am using PyCharm and its supported languages section,https://www.jetbrains.com/help/pycharm/supported-languages.html doesn't mention C, meaning no option to just create a C file and then import it进入 python。 Is there any other way of doing it?还有其他方法吗?

Unfortunately PyCharm does not support any C/C++ coding and there are no existing plugins for PyCharm that will support this.不幸的是 PyCharm 不支持任何 C/C++ 编码,并且没有现有的 PyCharm 插件可以支持这一点。 With that said, there is an IDE for C and C++ called CLion which is released by JetBrains just like PyCharm.话虽如此,有IDE用于Z0D61F8370CAD1D412F84D14D14D14D143E12557Z和ZF6F87C9F8B3C3C3C3C3CBRINF0BRINF0BBRING193CBRINGENNF.NEMENIS7.F.1BRING。 CLion supports many features varying from Python debugger to Python Console for working with python and also supports all features that Pycharm offers. CLion supports many features varying from Python debugger to Python Console for working with python and also supports all features that Pycharm offers. This should satisfy your needs towards using C code with Python in the most healthy way.这应该可以满足您以最健康的方式使用 C 代码和 Python 的需求。

Here are some useful links for you:以下是一些对您有用的链接:

https://www.jetbrains.com/clion/ https://www.jetbrains.com/clion/

https://www.jetbrains.com/help/clion/python.html#features https://www.jetbrains.com/help/clion/python.html#features

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM