Python,Anaconda,Jupyter Notebook,PyCharm

Disclaimer: I am engaged in java and taught myself python. I struggled to get started before and accidentally discovered that some common sense of python seems to be different from that of java. I hereby write it down in the hope of providing some help to some friends like me. The python master can bypass it on his own! !

Python

There is no need to say more about Python. Now that you've come in, you should already know what it is. It's a particularly awesome language-transformer.

PyCharm

PyCharm, like me who does Java, may know that, like IDEA, it is a Python language IDE from Jetbrains. It is designed to write Python. Of course, you can also use a text editor to write it.

Anaconda

Anaconda Here comes the key point. This Anaconda and Jupyter Notebook were discovered by experts for some reasons, and they discovered the new world of python. Let’s first look at Anaconda. What is it?
To put it simply, my understanding of it is 环境管理器; some friends may have seen what it is 包管理, or conda是包管理wait, these are all correct, but what I said is convenient for us to better understand, understand and use python faster, completely No problem;
what is environment management? Take the Java I know as an example. To develop Java, you need a Java development environment, also called JDK. Now I commonly use JDK8, and there are also new JDK11, JDK17, etc., this JDK8 This is my Java development environment. I will most likely never use other versions of the environment to develop Java;
however, Python is different. This is also the most confusing point when I first started using Python, why other people's code is so easy to use. It’s not easy to use when I use it. Why is it always the wrong version? Python has two versions, 2 and 3. I believe many people know that, and there is a big difference between these two versions. If we only install one, then if we develop another One version is not easy to use, and many Python dependency packages also have version differences, resulting in the same function package failing to run in different versions. Therefore, the role of Anaconda is here. It can generate many Python environments, and you can use them as you want in each environment. Python version, and freely introduce the version you want to depend on. What environment do you want to use for the project you develop? Just run this environment. This is what Anaconda does,一句话,Anaconda让你在一台电脑上拥有多个你需要的环境

Jupyter Notebook

Jupyter Notebook, after installing Anaconda, you can see a lot of software on the interface, among which Jupyter Noteboot is among them. Why just talk about it, because it is awesome, the 一句话总结就是,让你分块分行的看到你的代码的执行结果,只要你想language is too pale, you may understand it with a picture:

After running Jupyter Notebook, it will open in the browser. It is actually your local folder. Just select the location where your code is stored and open the .ipynb file.
Insert image description here

You can execute any line you specify in this file. As long as the topmost required import is executed, Xiangmian can perform any operation you want. There is no context trouble, and the execution can also be disrupted. This is its awesomeness. , so you don’t need to write a whole file and then debug it slowly. You can directly execute it as needed to return the results you want.
Insert image description here

Python official website
PyCharm
Anaconda official website

Guess you like

Origin blog.csdn.net/VincentLee7/article/details/125790505
Recommended