Do you really understand Python automation? This article can give you 90%

Why do people use Python?

The main factors for choosing Python are as follows:

  1. Software quality: To a large extent, Python pays more attention to readability, consistency and software quality, so as to differentiate development from other tools in the scripting language world. In addition, Python supports advanced reuse mechanisms for software development. For example, object-oriented programming.
  2. Improve the efficiency of developers: Compared with compiled/statically typed languages ​​such as C, C++, and Java, the efficiency of Python developers has increased several times. The amount of Python code is often only 1/5~1/3 of the amount of C++ or Java code, and the development speed can be imagined.
  3. Program portability: Python is cross-platform
  4. Standard library support: Python has built-in many pre-compiled and portable functional modules. Python's third-party support tools include various aspects such as website development, numerical calculation, serial port reading and writing, and game development. For example, Numpy, how powerful a library is like Matlab.
  5. Component integration: Python scripts can easily communicate with other parts of the application through a flexible integration mechanism.

Among the above factors, for most Python users, the first two (quality and efficiency) may be the two most attractive advantages of Python.

Insert picture description here

Is Python a "scripting language"?

Python is a multi-purpose programming language, often playing the role of scripting language. Generally speaking, Python can be defined as an object-oriented scripting language: this definition combines object-oriented support and the role of a comprehensive scripting language. In fact, people often describe Python code files in terms of "scripts" rather than "programs."

What are the disadvantages of Python?

We found that the only shortcoming of Python is dead: in the current implementation, compared with compiled languages ​​such as C and C++, Python's execution speed is not fast enough.

Insert picture description here

Who is using Python today?

  • YouTube video sharing services are mostly written in Python.
  • Douban is also developed by Python.
  • The P2P file sharing system BitJorrent is a Python program.
  • EVE Online, a massively multiplayer online game, uses Python extensively.
  • May, a powerful integrated 3D modeling and animation system, provides a Python scripting API.
  • iRobot has developed a commercial robot vacuum cleaner using Python.

and many more

There are many other aspects of Python, and Python has proven that it is omnipotent. Life is short, I use Python

Insert picture description here

What can be done with Python

  • Web development
  • Web Crawler
  • Data analysis, data mining, big data
  • Automated test/operation and maintenance, test/operation and maintenance development
  • System programming
  • Graphical user interface
  • Database programming
  • Scientific computing programming
  • Games, images, artificial intelligence, XML, robots, etc.

Insert picture description here

How does Python compare to other languages?

  • Simpler and easier to use than Java. Python is a scripting language, and Java inherits many languages ​​and complexities from system languages ​​such as C++.
  • It is simpler and easier to use than C++, but generally does not compete with C++. Because Python, as a scripting language, often plays many different roles.
  • It is easier to understand and more versatile than PHP.
  • It is more mature and readable than Ruby. Unlike Ruby and Java, OOP is optional for Python.

Insert picture description here
In addition, welcome to join the software testing technology exchange group 313782132 ~ Join the group to receive free software testing materials and test questions in the group!

Test engineer career development roadmap

Functional Testing — Interface Testing — Automation Testing — Test Development — Test Architect

Come on, test man! If you need to improve your plan, then take action. It is better to be on the road than to wait and see at the beginning. There must be a law, and then there will be success.

If the resources are good, give a recommendation~

Guess you like

Origin blog.csdn.net/weixin_50271247/article/details/109620088
Recommended