伙计们,如何整合原始Python代码“samplecode.py”。使用C#代码和Python代码的输出应显示在C#上。 [英] Guys, how to integrate the raw Python code "samplecode.py" with C# code and the output of the Python code should be displayed on the C#.

查看:77
本文介绍了伙计们,如何整合原始Python代码“samplecode.py”。使用C#代码和Python代码的输出应显示在C#上。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个python代码,其中应该用它来解释JSON语言,并且raw samplecode.py应该与C#代码集成,并且python代码的输出应该显示在C#上。



我尝试过:



i已经将python代码与C#代码集成在一起通过将原始python代码转换为.exe格式并将其作为输入文件提供给C#来执行它,我也得到了结果。但是现在我不想使用.exe文件格式作为输入,我需要使用原始python代码作为输入,并且应该使用C#代码显示结果。

I need to create an python code where the JSON language should be interpreted with it and that "raw samplecode.py" should be integrated with C# code and the output of the python code should be displayed on the C#.

What I have tried:

i already integrated the python code with the C# code by converting the raw python code to .exe format and gave that as an input file to the C# to execute it and i got the result too. But now i don't want to use the .exe file format as my input, i need to use raw python code to give as an input and that result should be displayed by using the C# code.

推荐答案

您是否考虑过 IronPython [ ^ ]?


这篇关于伙计们,如何整合原始Python代码“samplecode.py”。使用C#代码和Python代码的输出应显示在C#上。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆