Some basic features of Python are also essential knowledge for Python developers

Python has developed very rapidly in recent years, especially in 2017. With the rise of the concept of artificial intelligence, Python has become more and more concerned. Python has been included in the college entrance examination of Zhejiang Province and elementary school textbooks in Shandong Province. Python is known as the world's efficient programming language, and it is also known as the "glue language", but some of the basic features of Python are still unclear to some small partners. Today I will talk about some of the basic features of Python. This is also the knowledge you must have to become a Python developer.
Insert picture description here

1. Is Python development process-oriented, function-oriented or object-oriented?

Although Python is an interpreted language, it has been an object-oriented language since its initial design. For Python, everything is an object. Because of this, it is very simple to create a class and object in Python. Of course, if you are used to writing procedures or functions, Python does not impose hard restrictions.

2. Is Python capable of big data?

Python is very suitable for big data-related analysis. The built-in C-compiled modules can deal with common operations. It is recommended to rewrite related modules in C for some extreme algorithms. It also depends on whether the demand is CPU-intensive or IO-intensive. If it is CPU-intensive, it is recommended that this part of the operation be implemented in C. The efficiency of IO-intensive will not change much because of Python.

3. What application scenarios does Python apply to?

At present, many people are used to write the Web, using frameworks such as Django and web.py. If you don’t remember, Flask is also used. There is also a case where Python is used as glue and combined with various languages ​​to complete it together. Some software functions, pay attention to observation, maybe you will find that Python will appear when you install some software. Python is also more suitable for big data analysis. From loading to analysis, to saving results, Python has a complete set of modules to deal with.

4. How to use Python to improve development efficiency?

Because Python modules are rich in resources, many low-level things don't need to be written by yourself, and development efficiency will of course be improved if used properly, and various frameworks also provide a basis for rapid development.

5. Can Python access common databases?

Yes, Python can access various common databases, such as MySQL, Oracle, SQLServer, Vertica, etc. Just load the corresponding modules. The list of modules is as follows:

Oracle:cx_Oracle

MySQL:MySQLdb

6. Which platforms can Python run on? How cross-platform?

Python supports common mainstream platforms, such as AIX, Solaris, HPUX, Windows, Linux, etc. Except for Windows, common Unix and Linux platforms all have native Python, but the version is generally lower. Regarding cross-platform and its cross-platform language, it should be noted that there are individual modules that are unique to a single platform, and the overall cross-platform is still very good. It is not necessary to write multiple sets of codes to adapt to multiple platforms.

7. How to quickly master Python?

In fact, the most important thing to learn Python is the learning module, not the grammar itself. The grammar of Python is very simple. As long as the university has studied C or data structure courses, even people who have never learned it can easily master it. The function of Shell can be realized by mastering the grammar, but it is essential to improve the learning of the module. For example, operation and maintenance personnel often use:

XlsxWriter: Excel related processing

IPy: IP address related processing

difflib: file comparison

psutil: Get performance information

dnsptyhon: Domain related processing

socket: basic network communication

pexpect: screen information acquisition, often used in automation

paramiko: SSH client

There are many other functional modules, and new modules, frameworks, and components are constantly being produced every day, such as PythonJS for bridging with Java, and even Python can write Map and Reduce.

8. How fast is Python running?

Generally Java is faster than Python. Except for Python calling C extensions (CPython can also be used directly).

Regarding the criticism that Python is too slow, Guido van Rossum, the author of the Python language, said:

If you develop a system that finds a performance bottleneck, usually the most efficient way is to find the code block that has the problem, and write some code in a faster language such as C or C++ to replace the function or the module instead of C or C++ Rewrite the entire system, because for most of the code, the speed of the language is irrelevant.

The above are some basic features of Python that I have compiled. Learning is the greatest accomplishment of a person. Through learning, you can not only improve your own realm, but also enrich your knowledge and lay the foundation for future employment. Learning Python is a good opportunity to develop yourself. After all, the era of artificial intelligence has arrived, and Python as the main force in the era of artificial intelligence is very promising!
Insert picture description here
If you have strong self-control, self-motivated, and want to change the status quo through learning, you can reply in the background or comment: Python, you can receive the latest full set of Python learning materials + source code + projects + notes for free, and help everyone learn Python! The dream is not decayed, and there is sweat along the way. Come on!

Guess you like

Origin blog.csdn.net/xiaoxijing/article/details/109492210