下载地址:http://pan.baidu.com/s/1dDAZJxv

SharpDevelop 3.1 now supports converting C# and VB.NET code to IronPython. It can convert a single file or an entire project. The code to convert between these languages is still under development and has some limitations.

Converting an Individual File

To convert a C# or VB.NET file, open it in SharpDevelop‘s text editor, then from Tools menu select Convert code to Python.

The code conversion is limited to converting classes so it will not convert an arbitary piece of code that is not inside a class.

Converting a Project

To convert a C# or VB.NET project, open it in SharpDevelop, then from the Project menu select Convert From C# to Python.

Once converted the project will most likely not compile straight away due to limitations in the implementation. At the time of writing converting a project has the following limitations:

Project‘s Main File is not set.

No code generated to call the project‘s Main entry method.

Namespace imports do include all the used classes.

Code Conversion Internals

Converting code to IronPython was originally supported in SharpDevelop 2.2 and was based on converting code to aMicrosoft CodeDOM and then getting IronPython 1.0 to generate the Python code. In IronPython 2.0 this CodeDOM support was removed so the code conversion feature was removed from SharpDevelop 3.0 since that was using IronPython 2.0. In SharpDevelop 3.1 the code conversion has been rewritten to no longer use the CodeDOM support. It now works by executing the following simple steps:

The C# or VB.NET code is parsed using SharpDevelop‘s parsing library NRefactory and an abstract syntax tree (AST) is generated.

A visitor class then walks this AST and generates Python code which is added to a StringBuilder.

Once the visit is complete the generated Python code is then displayed or saved to disk.

原文:http://www.cnblogs.com/micro-chen/p/4892556.html

c#代码转python代码工具_C# 代码转换到Python相关推荐

  1. 8个零代码数据爬取工具,不会Python也能轻松爬数!(附教程)

    前天给大家整理了免费数据源网站合集,看大家的反馈很积极,有粉丝留言说,她还想要爬取一些网页的数据进行分析,不知道该如何下手 目前的用的比较多数据爬取方法是用python爬虫,这两年python很火,网 ...

  2. 使用python用什么软件-python开发工具有哪些(初学python用什么软件)

    python开发工具有哪些 一.jupyternotebookIDE简介-五星推荐 jupyternotebook是python学习与开发的一款简介的IDE,是一款Web应用程序,便于创建和编写文档等 ...

  3. python debug工具_常用的 Python 调试工具,Python开发必读-乾颐堂

    以下是我做调试或分析时用过的工具的一个概览.如果你知道有更好的工具,请在评论中留言,可以不用很完整的介绍. 日志 没错,就是日志.再多强调在你的应用里保留足量的日志的重要性也不为过.你应当对重要的内容 ...

  4. python debug工具_极简Python DeBug工具——PySnooper

    DeBug Python 代码的方式有很多种?比如: (1)设置断点 (2)print函数 (3)... 本文要介绍的是一个新开源的项目PySnooper ,只要给有疑问的代码加上装饰器,各种信息一目 ...

  5. python编程用什么软件-python开发工具有哪些(初学python用什么软件)

    python开发工具有哪些 一.jupyternotebookIDE简介-五星推荐 jupyternotebook是python学习与开发的一款简介的IDE,是一款Web应用程序,便于创建和编写文档等 ...

  6. c调用python第三方库_c/c++调用python程序且含tensorflow第三方库

    对于纯python程序而言,用c程序来调用是比较适合的,如果python程序中包含了其他第三方库,则调用极可能出错,且不易查明原因.如笔者曾用c程序调用包含tensorflow的python程序,有的 ...

  7. aes加密算法python语言实现_C#, Java, PHP, Python和Javascript几种语言的AES加密解密实现[转载]...

    原文:http://outofmemory.cn/code-snippet/35524/AES-with-javascript-java-csharp-python-or-php c#里面的AES加密 ...

  8. python可视化工具bokeh_浅谈python可视化包Bokeh

    本文研究的主要是python可视化包Bokeh的相关内容,具体如下. 问题:需要把pandas的数据绘图并通过网页显示,matplotlib需要先保存图像,不合适. 解决:在网上搜了一下,找到一篇介绍 ...

  9. c语言python字典结构_C语言解析Python字典的代码实例

    这里我们简单说一些背景,就是突然想写一点用C去写Python库的东西,下面的这些方法和用法大部分参考官方介绍 Python中字典 从参数中获取 从参数中获取的情况一般有两种,一般是我们如果明确了传入类 ...

  10. python 爬虫工具 butter_GitHub - TheButterflyOdor/proxy_pool: Python爬虫代理IP池(proxy pool)

    爬虫IP代理池 ______ ______ _ | ___ \_ | ___ \ | | | |_/ / \__ __ __ _ __ _ | |_/ /___ ___ | | | __/| _// ...

最新文章

  1. Python常用模块——目录
  2. js.domReady
  3. 国内首家,腾讯云云开发“全家桶”来了
  4. MDOP 2011 R2 DaRT 7.0 创建包含诊断和恢复的图形化PE
  5. 马杰c语言程序设计基础,【我校自编教材】程序设计基础(C语言版)
  6. Blazeface 人脸检测器
  7. Windows 2000安装和配置RIS服务
  8. layer.open()利用代码实现伪阻塞
  9. SQL with etc获取父节点或子节点总结
  10. Windows(11)下JDK安装与环境变量配置
  11. 32款 jQuery UI框架开源软件
  12. 中国银行计算机笔试题库,中国银行笔试真题-计算机部分
  13. 慢就是快的人生哲理_关于慢的境界的哲理美文
  14. 2022建筑电工(建筑特殊工种)考试题目模拟考试平台操作
  15. java代码编写的文本特征提取_文本特征词提取算法
  16. 老卫带你学---使用cv2.imwrite保存的图像是全黑的
  17. Spring Boot 异常错误处理
  18. save-ps-to-svg1.0百度网盘资源
  19. layui数据表格操作栏,根据条件改变显示操作的按钮
  20. #c语言计算某年某月的天数

热门文章

  1. 19种音频格式介绍及音质压缩比的比较
  2. 小米 线刷 android,小米10 Android 11 Beta 1线刷包已放出,安卓11/MIUI 12二选一
  3. IP协议与MAC地址详解
  4. 文本检测算法:CTPN
  5. js中替换和全部替换
  6. ps4微软服务器地址,PSN服务更新 终于可以在PC上玩PS4游戏了!
  7. ps4如何无线连接网络连接服务器,PC党最佳选择!达人发布PS4手柄无线连接PC教程...
  8. 关于华为S27000交换机在局域网中的一些简单配置
  9. 财务自由的日子,我抑郁了
  10. html下拉列表框跳转,html下拉框跳转问题