Java中安装python插件

已有平台:python3.6、JDK、Eclipse4.7.2
现在需要在Eclipse4.7.2上安装PyDev(即运行python代码的插件)?
安装步骤:
第一步:找到pydev软件的地址:http://www.pydev.org/update_sites/
这里写图片描述
复制最新版网址备用。
第二步:打开Eclipse软件;
第三步:打开help——install new software——将复制的网址粘贴到对话框中的work with:框中——回车——然后下面会出现对应的PyDev安装包——全选中——next——finish——等待安装。
第四步:重启Eclipse,并在window工具栏中选择preference项,找到pydev项,按下列步骤执行即可。
这里写图片描述

配置好PyDev后,就可以写个简单的Python脚本程序试试。具体新建过程如下:

File -> New- Other——PyDev->PyDev Project——next——然后再填写完项目信息后,点击完成:【第一次的话,其会问你,是否使用PyDev的试图,点击Remember和Yes:】——结果我这里由于是新建的Eclipse,导致界面没有切换到项目浏览模式,所以需要手动去设置一下:Window -> Show View -> PyDev Package Explorer——再点击了一下那个Restore,就出现了PyDev的视图了——点开对应的pydevTest项目——新建一个文件
——输入文件名pydevTest.py——完成
可视化步骤请参考:
http://www.360doc.com/content/14/0430/15/16044571_373498971.shtml

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Python is much like Java and at times even looks simpler. But Python is just as powerful as Java. If Java is the heavy metal of computer programming, then Python is the jazz that opens doors of freedom in software development. Both Java and Python are object-oriented programming languages. Both support Java’s famous features such as encapsulation, inheritance and polymorphism. Both can be used to develop desktop and web-based applications. Both are multi-platform and run on all major platforms such as Linux, MS Windows, and Mac OS. Both support graphical user interface development. Of course, there are also differences between Java and Python. For example, Java programs must be compiled, but in Python you have a choice of compiling your programs into stand-alone applications or running them as interpreted scripts or programs launched by a command from the Command Prompt. There are many other similarities and differences between these two languages, and those similarities make it a lot easier than you might think to learn Python, if you already know Java. While learning Python myself, I realized how fast and easy it was to understand and pick up Python’s syntax when I started converting Java’s programming problems into Python. I had already known Java and worked with it professionally for some time, but I found myself having to learn Python fast to advance in my career. It motivated me to find a way to harness my existing knowing to speed up the process of learning a new language. This book is essentially a systematic presentation of the learning process I documented in learning Python using knowledge of Java. For the engineer who is already proficient in Java, it would be a waste of time to study a Python textbook that begins with the basic concept of object-oriented programming, since the concept of OOP software development is identical in all languages. The differences from one language to another are in their syntax. Syntax is best learned by using examples of the programming language that the engineer already knows. That’s exactly is the learning model of this book. This book is for those who are already comfortable with developing using Java programming language and therefore assumes knowledge of Java. Designed for Java engineers who want to learn Python, this book walks you through the differences between Java 8 and Python 2.7 syntax using examples from both languages. Specifically, the book will demonstrate how to perform the same procedures in Java and Python. For each procedure, the class names, method names, and variable names are kept consistent between Java and Python examples. This way you can see clearly the differences in syntax between the two languages. Using this approach, you will be up to speed with Python in no time. Table of Contents Chapter 1. A First Simple Program Chapter 2. Compiling A Program Chapter 3. Variables Chapter 4. Control Statements And Loops Chapter 5. Operators Chapter 6. Classes Chapter 7. Data Structures Chapter 8. Multithreading And Multiprocessing Chapter 9. I/O Chapter 10. Strings Chapter 11. Sorting And Searching Algorithms Chapter 12. Python’S Modules, Java’S Libraries Chapter 13. Running Shell Commands From Python Chapter 14. Querying Databases Chapter 15. Bulding Stand-Alone Applications With Python Chapter 16. Building Websites With Python

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值