将python转换为c#的工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11373742/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 17:38:28  来源:igfitidea点击:

Tool to convert python to c#

c#python

提问by user1509

Is there any tool or way in which I can convert or translate python code to c# code?

是否有任何工具或方法可以将 python 代码转换或翻译为 c# 代码?

采纳答案by Paul Michalik

Hm, wouldn't it be wiser to reuse the existing Python code base via IronPython, for example?

嗯,例如,通过IronPython重用现有的 Python 代码库不是更明智吗?

回答by George Birbilis

There is an opensource tool that may be useful for conversion of Python to C#:

有一个开源工具可用于将 Python 转换为 C#:

https://github.com/uxmal/pytocs

https://github.com/uxmal/pytocs

the sample conversions in that page look promising

该页面中的示例转化看起来很有希望