Home  >  Article  >  Backend Development  >  Do you need to know Linux to learn Python?

Do you need to know Linux to learn Python?

silencement
silencementOriginal
2019-06-19 17:11:562766browse

Many Python newbies often ask whether they need to learn Linux to learn Python? Doesn’t Python support Windows and Linux operating systems? Why learn Linux when you can develop under Windows?

Friends who ask this question may not have really started Python development or have not really participated in some of the company's project deployment and launch processes. For the above questions, the preferred answer is yes, Python development can be done in Develop under Windows, but learning Linux is still necessary.

Do you need to know Linux to learn Python?

Online servers are generally

Generally in production environments, servers are basically Linux, such as centos, Red Hat, ubuntu and other Linux systems. Why are most servers using linxu? For example, one of them must be security. We have heard that Windows often crashes, and people who are invaded by ransomware viruses have to pay Bitcoin, but these do not happen often under Linux. There are many other reasons that can be found online, so the Python scripts in the production environment are It is deployed on the Linux system, but when developing, considering the convenience of operation, Windows or Mac not only have a graphical interface, but also have better performance, and the operation is easier and faster. After all, anyone who has used Ubuntu knows that, Installing a virtual machine still requires certain computer performance. If the computer configuration cannot keep up, it will be very laggy when using Ubuntu. Generally, server-level systems have a character-based interface, which is the legendary black screen. If you It is possible to develop on a Linux server, but it is more troublesome and requires high coding level and operational proficiency.

Deployment

Online deployment often encounters the problem of debugging the code after deploying it to the server. Generally, during the debugging process, developers will frequently switch directories back and forth, search for files, and use VI is used to modify the code. These regular operations are all necessary skills for a Python development engineer. VI also uses various Linux commands. This is convenient and direct. There is no need to transfer the code offline, and then transfer it to the server after modification. Those hackers all operate directly under Linux commands, because if they want to attack and modify the other party's server code data, they must understand all operations under Linux, and for hackers, using commands is more efficient than the graphical interface

Linux is more convenient

Linux is more convenient for developers. You have the highest authority in the Linux system, and you can choose various configurations and tools. However, under Windows, The changes you can make to the system are relatively cumbersome. Using Linux, the modification of various configuration files only requires a few commands, and the installation of tools only requires a few commands. If you modify the configuration under Windows, you may need to look for the file everywhere, which is also a shortcoming of the graphical interface.

To summarize, the Python language can also be learned and developed under Windows, but it is more convenient under Linux. For example, if you want to use Python to develop a website (the popular and mature Python Web framework today), you need to use the Linux platform. After all, the Linux platform is more commonly used to build such a website; secondly, if you want to use a Python crawler to crawl data, It is also more convenient on the Linux system; also, if you want to learn network security penetration testing, it is also necessary to write Python automated test scripts on Linux.

The above is the detailed content of Do you need to know Linux to learn Python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn