Today we are going to learn PyCharm. The poor installation and configuration of PyCharm will have a great impact on later learning. Today I will teach you how to do it!
1. PyCharm
PyCharm is a Python IDE (Integrated Development Environment), with a set of tools that can help users improve efficiency when developing in the Python language. The internal integration functions are as follows:
- Project management
- Smart Tips
- syntax highlighting
- code jump
- debug code
- Jiedai?
- Frameworks and Libraries
- …
PythonCharm is divided into professional version and community version, and the dark horse course is explained in detail based on the community version. It is suggested that when you don’t know anything about compilers and interpreters, don’t listen to the big cows to use online compilation, and use PyCharm honestly.
2. Download and install
2.1 Download
The professional version is charged, and the community version can meet our basic programming needs
2.2 Installation
Double-click the installation package – [Win?] – [Allow you to change the device]: [Yes] – [Next] – [Choose the installation location] – [Next] – [Install] – [Finish].
3. Basic use of PyCharm
3.1 New project
Open PyCharm – [Create New Project] – select the item – root directory and interpreter version – [Create], and you can create a new project.
3.2 Create a new file and write code
Project root directory or anywhere inside the root directory – Right click – [New] – [Python File] – enter file name – [OK]
If it is a file to be uploaded to the server in the future, please do not use Chinese!
Ok, then you can open the file and write the code:
print("hello world")
3.3 Run the file
File open status – blank position – right click – Run – to call up Pycharm’s console output program results.
4. Basic settings of PyCharm
[?le] – [Settings]/[Default Settings].
4.1 Modify the theme
[Appearance & Behavior] – [Appearance]
- Theme: modify the theme
- Name: Modify theme font
- Size: modify the theme font size
4.2 Modify the code text format
[Editor] – [Font]
- Font: modify the font
- Size: Modify the font size
- Line Spacing: Modify? Spacing
4.3 Modifying the Interpreter
[Project: Item?Name] – [Project Interpreter] – [Settings Icon] – [Add] – Browse to? Icon Interpreter – [OK] –[OK].
4.4 Project Management
4.4.1 Opening a project
[File] – [Open] – browse to select the target item or the root directory – [OK] – select the open program.
There are three ways to open an item, as follows:
1. This Window overwrites the current item, from which to open the tabbed item?
2. If New Window opens in a new window, open PyCharm twice, and each PyCharm is responsible for one item.
3. Attach
4.4.2 Closing a project
[File] – [Close Project]/[Close Projects in current window]
The installation package has been packaged at the end of the article
About Python technology reserves
Learning Python well is good whether it is employment or sideline business to make money, but to learn Python, you still need to have a study plan. Finally, everyone will share a full set of Python learning materials to help those who want to learn Python!
For beginners with 0 basics:
If you are a zero-based novice, you can consider getting started with Python quickly.
On the one hand, the learning time is relatively short, and the learning content is more comprehensive and concentrated.
On the other hand, you can find a learning plan that suits you
Including: Python activation code + installation package, Python web development, Python crawler, Python data analysis, artificial intelligence, machine learning and other tutorials. Take you to learn Python systematically from zero foundation!
Introduction to zero-based Python learning resources
Python learning route summary
The technical points in all directions of Python are sorted out to form a summary of knowledge points in various fields. Its usefulness lies in that you can find corresponding learning resources according to the above knowledge points to ensure that you can learn more comprehensively. (Get the full set of tutorials at the end of the article)
Python essential development tools
Reminder: The space is limited, the folder has been packed, and the way to obtain it is at the end of the article
Python learning video 600 collection
Watching the zero-based learning video is the fastest and most effective way to learn. Following the teacher’s ideas in the video, it is still very easy to get started from the basics to the in-depth.
100 Python exercises
Check the learning results.