We all know that the Python programming language can break down related programs into modules in actual operation, but you know which modules can be used as the basis of your programs? The following is the answer to this question. Hope you will have some gains.
Example of using ython for programming. The system also provides file input and output, system calls, sockets (sockets), and even General interfaces of the window system (STDWIN.
- Cracking the mystery of the wide application of Python Programming Language
- Introduction to running helloworld in Python
- The Python programming language solves several common practical problems
- Call Matlab in the Python programming language to draw and save data
- Introduction to the historical development of the Python Programming Language
The scripting language is similar to DOS batch processing and UNIX shell programs. The script language does not need to be compiled and then executed every time, and can easily access the running program during execution, or even dynamically modify the running program, it is suitable for rapid development and completion of some simple tasks. New features often need to be added when using the script language, but sometimes the script language is already very slow, very large, and very complicated and cannot be implemented;
Alternatively, the required functions involve system calls or other functions that can only be provided by the C language-the problem to be solved is not important to the extent that the C language must be used for rewriting; or, to solve the problem, such as a variable-length string and other data types such as an ordered list of file names), such data types are very easy in the scripting language, and C language requires a lot of work; or, programmers are not familiar with the C language: in these cases, they can still use the script language.
In this case, Python may be suitable for your needs. Python is easy to use, but it is a real programming language and provides more structures and support for large programs than shell. On the other hand, it provides more error checks than C. It is a very advanced language with a variety of built-in advanced data structures, such as flexible arrays and dictionaries, it may take several days for these data structures to be implemented efficiently in C.
Because Python has a more general data structure, it is wider than Awk or even Perl, and many things are at least as easy in Python as in these languages.
The Python programming language allows you to break down a program into modules, which can be reused in other Python programs. It comes with a large number of standard modules that can serve as the foundation of your own programs-or as an example of learning Python programming. The system also provides file input and output, system calls, sockets (sockets), and even General interfaces of the window system (STDWIN.
Python is an interpreted language, which saves a lot of time for program development because it does not require compilation and connection. The interpreter can interact with each other, so that you can easily test the features of the language, write a program only once, or test the function from the bottom up program development. It is also a convenient calculator.
The advanced data structure allows you to use a statement to express complex operations;
Composite statements depend on Indentation rather than brackets indicating start and end;
Variable declaration or parameter declaration is not required.
The Python programming language is extensible: If you program in C, it is easy to add new built-in functions or modules to the interpreter, so that you can perform key operations as quickly as possible, or connect the Python program to a library that can only be provided by binary code, such as a graphics library provided by different vendors. When you get really running, you can connect the Python interpreter to an application written in C and use it as an extension or command language for the application.