First, you install Anaconda. After the installation is complete, you can find Anaconda in the start menu, which contains the following items:
1. The third "Anaconda Prompt" is a window similar to cmd:
2. You create a new .py file on the desktop, such as "hello.py", Code the following code inside:
print("hello world"), save
3. In "Anaconda Prompt" cd to the desktop (note: you can go to any file attribute on the desktop Find the path of the desktop):
4. Input: python hello.py
5. The interface is as follows:
The above is the detailed content of How to write python code with anaconda. For more information, please follow other related articles on the PHP Chinese website!