Java to Python

0
(0)

Java to Python
 

  • Author:Igor Vishnevskiy
  • Length: 200 pages
  • Edition: 1
  • Publisher: CreateSpace Independent Publishing Platform
  • Publication Date: 2016-08-01
  • ISBN-10: 1537362089
  • ISBN-13: 9781537362083
  • Sales Rank: #5936642 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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

    中文:

    书名:Java to Python

    Python很像Java,有时甚至看起来更简单。但是,Python和Java一样强大。如果说Java是计算机编程中的重金属,那么Python就是打开软件开发自由之门的爵士乐。Java和Python都是面向对象的编程语言。两者都支持Java的著名特性,如封装、继承和多态。两者都可用于开发桌面和基于Web的应用程序。两者都是多平台的,可以在所有主要平台上运行,如Linux、MS Windows和Mac OS。两者都支持图形用户界面开发。当然,Java和Python之间也有区别。例如,必须编译Java程序,但在Python中,您可以选择将程序编译为独立的应用程序,或者将它们作为解释脚本或命令从命令提示符启动的程序运行。这两种语言之间还有许多其他的相似之处和不同之处,如果您已经了解Java,那么这些相似之处使学习Python比您想象的要容易得多。在我自己学习Python的过程中,我意识到当我开始将Java编程问题转换成Python时,理解和掌握Python语法是多么的快速和容易。我已经了解Java并专业地使用了一段时间,但我发现自己必须快速学习Python才能在我的职业生涯中取得进步。它激励我找到一种方法来利用我现有的知识来加快学习一门新语言的进程。这本书基本上是我在使用Java知识学习Python中记录的学习过程的系统演示。对于已经精通Java的工程师来说,学习一本从面向对象编程基本概念开始的Python教科书是浪费时间的,因为OOP软件开发的概念在所有语言中都是相同的。一种语言与另一种语言的区别在于它们的句法。通过使用工程师已经知道的编程语言的示例来学习语法是最好的。这正是本书的学习模式。这本书是为那些已经习惯于使用Java编程语言进行开发并因此假定他们了解Java的人编写的。这本书是为想要学习Python的Java工程师设计的,本书使用这两种语言的示例向您介绍了Java 8和Python2.7语法之间的差异。具体地说,本书将演示如何在Java和Python中执行相同的过程。对于每个过程,Java和Python示例之间的类名、方法名和变量名保持一致。这样你就可以清楚地看到这两种语言之间的语法差异。使用这种方法,您很快就能熟悉到Python。

    Table of Contents

    第1章.第一个简单的程序
    Chapter 2. Compiling A Program
    Chapter 3. Variables
    第4章.控制语句和循环
    Chapter 5. Operators
    Chapter 6. Classes
    Chapter 7. Data Structures
    第8章.多线程和多处理
    Chapter 9. I/O
    Chapter 10. Strings
    第11章.排序和搜索算法
    第12章.Python的模块、Java的库
    第13章.从Python运行外壳命令
    Chapter 14. Querying Databases
    第15章:使用Python构建独立应用程序
    第16章:使用Python构建网站

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册