Initial setup of PyCharm 2 - open, new project

03. Create/Open a Python Project

3.1 Project Introduction

  • A development project is the development of a software designed to solve a complex business function
  • Usually each project has a separate and dedicated directory for saving all project-related files

    – A project usually contains many source files

3.2 Open the Python project

  • Click the Open button directly, then browse to the directory where the Python file was saved before , you can open the project
  • After opening, a new .idea directory will be created in the directory to save project -related information , such as: interpreter version , files included in the project, etc.
  • The first time you open the project, you need to wait patiently for PyCharm to set the project initially

 

 

  Set the interpreter version used by the project

    •   If the opened directory is not the project directory created by PyCharm, sometimes the interpreter version used is Python 2.x, and the interpreter version needs to be set separately
    •   The settings window can be opened through File / Settings... , as shown in the following figure:

 

 

3.3 New project

1) Naming rules

  • In the future, the project name will be numbered in front of the number , and the number will increase as the knowledge point increases.

For example    : 01_Python_Basic , 02_Branch , 03_Loop ...

  • The file are named in the form of hm_xx_knowledge points

    – where xx is the sequence number of the exercise file

  • Notice
    1. It is recommended to use only lowercase letters , numbers and underscores when naming files
    2. filename cannot start with a number
  • New projects can be created through the welcome screen or the menu File / New Project

2) Exercise steps

  • Create a new 01_Python basic project and use the Python 3.x interpreter
  • Create a new hm_01_hello.py Python file under the project
  • Write the print("Hello Python") code

04. Set the font display of PyCharm

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325053764&siteId=291194637