Python is what python is a programming language, its name comes from a comedy. Perhaps the person who originally designed Python this language did not think that today Python would be so widely used in industrial and scientific research.
The famous free software author Eric raymond is one of the four programming languages that Python should learn in his article "How to become a hacker", and it is recommended that people start learning programming from Python. This is indeed a pertinent suggestion, and Python is one of the best choices for programming learners who have never learned programming or not computer professional programming.
Python first learned Python for the first time, I only used less than 20 minutes, and I stood in the bookstore to learn Python's book to learn Python. Since then, I started attracting this magical language.
Python is what python is a programming language, its name comes from a comedy. Perhaps the person who originally designed Python this language did not think that today Python would be so widely used in industrial and scientific research.
The famous free software author Eric raymond is one of the four programming languages that Python should learn in his article "How to become a hacker", and it is recommended that people start learning programming from Python. This is indeed a pertinent suggestion, and Python is one of the best choices for programming learners who have never learned programming or not computer professional programming.
Easy to use and speed, Python is a very convenient language. Many beginner Java people will be dizzy by Java's ClassPath, spending a long time, I understand that ClassPath has made a wrong Hello World Can not run. There will be no such problem with Python, and you can use it directly.
Python is a scripting language. You can run it directly, save the trouble of compilation links. For beginners who need more hands-on practices, it is a chance to make an error. Moreover, Python has an interactive way. If it is a simple applet, even the editor can save, and you can run it directly.
Python is a clear language that is used to indicate the nested relationship between the program. It is a kind of pioneering to upgrade the programming style of past softness into a hard syntax. No need to choose between different styles, no need to dispute with different styles. Unlike Perl, there is no contrafic abbreviation in Python, and there is no need to entrunly I know the meaning of a variety of strange symbols. Python wrote easy to understand, this is a lot of people's consensus.
Python is an object-oriented language, but its object-oriented is not like C , but also pay more attention to practical. Not to reflect the full support of the concept, but use the easiest way to enable the programmer to enjoy the benefits of object-oriented objects, this is Python to attract many support as Java, C # One of the reasons.
Python is a rich language that has a powerful basic class library and a large number of third-party extensions, making Python programmers without envious of Java JDK. Python provides programmers with a rich basic feature that makes people don't have all the bottom.
Speaking here, people usually use a worry: scripting language is usually very slow. The script language is indeed slowly from the speed of running, but Python's speed is much faster than people.
Although Python is a scripting language, it can actually compile it, compile the Python program as a special bytecode, when the program is running, execute Bytecode, save the procedure The analysis of text is explained, and the speed is naturally improved.
Programming with Java is a way of Pure Java. In addition to virtual machines, all things are written in Java, both basic data structures or graphical interfaces, and Pure Java's SWING is a nightmare of countless Java application developers. . Python advocates practical, its overall environment is written with C, many basic functions and extension modules are written in C / C , when this part of the code is executed, its speed is the speed of C. The normal desktop program written in Python, which starts running speed and the program written with C. In addition to these, through some third-party software packs, the source code written in Python can also be run in a similar JIT, and this can greatly improve the running speed of the Python code. It will be 2 times to 100 times for different types of code. The speed increases.
Python is the most perfect one I have seen in ease and speed. By losing a little bit of operations, you can neglect's logging efficiency, which is why I choose Python. .
Put your energy on the problem to be resolved to choose a suitable language to let you put a limited energy on the problem that is the most solved. Different languages have different roles, C and compilation are suitable for writing system software. If they use them to write corporate applications, I am afraid that few people can be worn. I have encountered a brother with compilation of database programs, although the most basic function is complete, but to add a report to preview what, he can't cope. Smart programmers are to complete the task with the right tool, want to find a universal key is unlikely.
Python's automatic garbage collection mechanism is a basic feature of advanced programming languages, with language programmers with this feature, programmers usually do not have to care about memory leaks, and when we use C / C write programs, This is one of the problems that need to be seriously considered, but it is very easy to mistaken.
The data structure is an important part of the program, a linked list, a tree, and a problem that needs to be carefully expressed in Python when using C. In Python, the most basic data structure is an array, sequence, and hash table, which is very easy to use them to express a variety of common data structures. Without defining a pointer, assigning a memory task, programming is interesting.
CORBA is a high-level software architecture that is unrelated to language-independent platforms. C , Java and other languages have CORBA bindings, but compared to them, Python's CORBA binding is much easier, because in programmers, a Corba class and Python class use, and there is no difference in achieving . In addition, it is easy to write CORBA programs with Python.
Good steel should be used on the blade. If you want to complete the trial of the task with a limited time, you should abandon all kinds of issues, while Python provides this method.
Cross-platform is easy to expand With Linux's constant maturity, more and more people go to the Linux platform, software developers naturally hope that their software can run under all platforms. Java writes a slogan running everywhere to make it a model of cross-platform development tools, but its running speed is not optimistic. In fact, almost all famous scripting languages are cross-platform, Python is no exception. Python not only supports various Linux / UNIX systems, but also supports Windows, which can run Python programs even on Palm.
A program wants to work across platforms, but also need language itself to be compatible between the platform, in the era of graphical interface, there is also a Widget that can work across platforms. Python not only supports old TK, but also supports new GTK , QT, and WXWIDGET, but these Widgets can work on multiple platforms. Through them, the programmer can write a beautiful cross-platform GUI program. Python is usually run between Native Codes and script code, and the programmer can write a variety of modules with C / C for Python, which can not only make the programmer use the system in Python and use C / The excellent function library and class library written in C can also greatly improve the speed of the Python program.
Writing Python with C / C is not complicated, and in order to simplify this work, people have also produced a lot of tools to assist this work. It is because of this, now a variety of commonly used libraries and libraries have the binding of Python languages, and more and more things you can do with Python.
Universal key? Python is powerful, but it is not universal. If you want to write an operating system or driver, it is obvious that Python cannot do it. To write software, no tool is universal, now there are so many programming languages, because different languages are suitable for different things. Therefore, it is most important to choose a language tool that suits you.
How to get?
Python is free open source software, you can find it on SourceForge.net.