Pycharm can be downloaded from the official website
You need pycharm or a registration code to leave a comment directly!
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/6a0ce3ca-2df1-4700-85e1-1ec2dec45013.jpg)
Pycharm installation and activation
The purpose of the jar package is to intercept the deadline and fool pycharm;
It is actually easy to get started with Python, but we have to persist in learning. It is difficult to persist every day. I believe many people give up after learning it for a week. Why? In fact, if there are no good learning materials for you to learn, it will be difficult for you to persevere. This is the introductory learning materials for Python collected by the editor. Follow, forward, and privately message the editor "01" to get it for free! Hope this helps
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/c431711f-1fc9-44bb-a1fa-a3ceeb98a1ce.jpg)
Place the jar package into pycharm's local installation directory bin. And modify the two startup files ending with vmoptions as shown in the figure:
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/fdbd3662-5970-49e8-943c-85e18bd1fbf4.jpg)
And append -javaagent:D:devAppPyCharm 2017.3.2inJetbrainsCrack-2.6.10-release-enc.jar after the two files
// Note: The bold mark is your own installation directory
Restart idea
Notice! If the registration code already exists before, you can jump directly to step 4. If there is no registration code, fill in the registration code.
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/d877cf5b-dae4-4123-ba88-e5cab6ed7bb1.jpg)
Pycharm configuration
Change to gray background theme
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/826f5bfa-34cb-4c06-bea8-53e5d67d9279.jpg)
After installation, select settings:
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/ef29a487-263e-427c-b7cf-a94c60236293.jpg)
I like the theme here to be gray. I first change the appearance to Darcula, and then Apply
Show line number
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/27158bda-da60-4ce2-ba89-1192743130d4.jpg)
Select -Editor-General-Appearance and select show line numbers to display the line numbers.
Modify font size
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/05ef8735-0fd0-403d-a853-ddfb8eef2db1.jpg)
Then select Editor-Colors&Font-Font. We make the font larger. Since the default theme font cannot be modified, we select Darcula and save as a new theme. Then you can change the font size, I think 14-16 is more suitable.
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/9fa9eff6-a56f-48b1-b11c-350a4c95e358.jpg)
If you can't find your font, you can uncheck it
run
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/a82434c0-0676-44a2-a9db-efbc3afdd729.jpg)
Before running, you need to add a configuration
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/ac5b26a0-7f0f-4c29-b9eb-dccee70422ed.jpg)
Click +, click python
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/0823d3f3-eea6-4af5-b2d5-de7b28ec69cb.jpg)
After the Script point... select the script you want to run.
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/dbb63235-9088-4580-bd9c-40cd8c1d4cfc.jpg)
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/f2aa39c3-74a4-4a02-be5c-be55c2fe5c2b.jpg)
Click the green button to run
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/83cbc332-dc51-4bf8-a127-ccf6782d05d3.jpg)
The code runs correctly
debug
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/15169590-b8b8-47bc-a535-a74935f2479e.jpg)
Set a breakpoint first
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/bf56e86f-702c-4208-bb39-38cb54806990.jpg)
Then click on the bug icon
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/ca4b788e-b214-4f36-94d1-5492671aaa5a.jpg)
The variables are displayed here. We can drag the variables that need to be observed to the watch window.
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/e1905910-9d7e-49ff-bb13-c9d3d19ae309.jpg)
Or directly click "+" to enter the observation variable
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/dcdc34a3-1ab0-4512-8dbe-bf784846ec23.jpg)
The debugging functional areas are in order
Display current execution point: Alt+F10
Single step to the next line of code: F8
Single step into function: F7
Step down to your own code (skip the library): Alt+shift+F7
Single step out: Shift+F8
Jump to mouse position: Alt+F9
Quick use of Pycharm
1. Editing
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/dc1d9fa9-e828-4be7-be2a-cb8a8e9d0b48.jpg)
2. Search/Replace
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/281ab29e-f971-4d4d-92e5-bcb7ba6cbd64.jpg)
3. Running
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/c78c6fee-cbe9-4855-9269-74a0cf9a0dcf.jpg)
4. Debugging
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/3b3b2b9f-57e4-409e-8c17-fc0527d98827.jpg)
5. Navigation
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/4984db67-3f9c-4176-86d2-7f44195a15c3.jpg)
6. Search related (Usage Search)
Alt + F7/Ctrl + F7 Query usage in files
Ctrl + Shift + F7 Usage highlighting in file
Ctrl + Alt + F7 Show Usage
7. Refactoring
F5 copy F6 cut
Alt+Delete Safely Delete
Shift + F6 rename
Ctrl + F6 change signature
Ctrl + Alt + N inline
Ctrl + Alt + M extraction method
Ctrl + Alt + V to extract properties
Ctrl + Alt + F to extract fields
Ctrl + Alt + C to extract constants
Ctrl + Alt + P to extract parameters
8. Control VCS/Local History
Ctrl + K Submit project
Ctrl + T update project
Alt + Shift + C to view recent changes
Alt + BackQuote(’)VCS quick popup
9. Templates(Live Templates)
Ctrl + Alt + J Use template for current line
Ctrl +J insert template
10. Basic
![](http://ttzixun.oss-cn-beijing.aliyuncs.com/ttzixun/pic/5996161d-c4d7-4dfe-94ab-7aceb0a18287.jpg)
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/Pycharm-ji-huo-pei-zhi-yi-ji-kuai-jie-fang-shi.html
评论列表(196条)
测试