Pycharm is a powerful Python editor. It is currently the most popular IDE for Python development. It can efficiently improve the development efficiency of Python, and it has syntax highlighting, code debugging, code refactoring, unit testing, version control, and cross-platform support. Platform (Windows/Linux/MacOS) and other features. Mastering the use of Pycharm is already the most basic requirement for Python programming.
Pycharm has two versions, professional means the professional version, community means the community version, the community version is a lightweight version, but it is free, and the professional version requires a fee. You can use the open source community version for self-study, and the professional version is recommended for later practical work.
Basic introduction to the interface
Introduction to common functions
1. Adjust the interpreter
If you have installed more interpreters, you can modify the required interpreter in File>Setting>Projec Intepreter. The interpreter needs to select the python.exe file in the Python installation directory.
2. Adjust fonts, themes, encoding
Set Pycharm font and size in file>setting as needed
Editor interface font
Set editor font and size
Adjust encoding format:
3. Add file header description:
4. Set breakpoints
As shown in the figure before the code line, click the mouse to set a breakpoint. Then click the debug button to perform breakpoint debugging. Click Step Over or press F8 to run in a single step, and click the red dot to cancel the breakpoint.
5. Install third-party libraries
In addition to installing third-party libraries with the pip install command, you can also install the required libraries directly in pycharm.
1. Click the + sign in file > setting > Project xxx > Project Intepreter.
2. Search for the desired library name in the search box.
3. Click Install Package to install.
Common shortcut keys
Ctrl + D: Duplicate the current line
Ctrl + Y: delete the current line
Ctrl + /: comment uncomment, you can batch select to take effect
Ctrl + Z: Undo
Ctrl + minus sign: fold the current code block
Ctrl + plus sign: expand the current code block
Ctrl + F: Find
Ctrl + H: replace
Tab: indent
Shift + Tab: Cancel indentation
Alt + Ctrl + I : Auto-indent
Ctrl + Shift + minus sign: the entire file is collapsed
Ctrl + Shift + plus sign: expand the entire file
Alt +Shift+F10 : run
Ctrl+Q: quick view document
Ctrl + left mouse button: View profile
There is a shortcut keyboard wallpaper, you can save it for study.
I recommend you a book, which contains detailed download and installation of PyCharm, commonly used techniques, etc.
Collect method: Leave 1 in the comment area, and then private message in the background: pycharm to receive it
-End-
Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/Do%20you%20really%20know%20how%20to%20use%20PyCharm%20pycharm%20Chinese%20Guide%20is%20coming.html
评论列表(196条)
测试