Home  >  Article  >  Backend Development  >  Do I need to learn linux to learn python?

Do I need to learn linux to learn python?

anonymity
anonymityOriginal
2019-06-13 11:22:545077browse

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?

The preferred answer is yes, Python development can be developed under Windows, but Linux learning is still necessary.

Do I need to learn linux to learn python?

The online server is usually linux

Generally in a production environment, the server is basically They are all based on Linux, such as CentOS, Red Hat, Ubuntu and other Linux systems. Why do most servers use Linux? 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 also 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 to modify the code. These routine operations are all necessary skills for a Python development engineer. VI also uses various Linux commands. This will It is convenient and direct. There is no need to transfer the code offline, modify it and then transfer it to the server. Those hackers directly operate the command under Linux, because if they want to attack and modify the code data of the other party's server, they must understand everything under Linux. Operation, and for hackers, using commands is more efficient than the graphical interface

Linux is more convenient

Linux is more convenient for developers Conveniently, you have the highest authority in the Linux system, and you can choose various configurations and tools. However, under Windows, the modifications you can make to the system are relatively troublesome. 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 I need to learn 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