The author of this article is Named Liu Shanguo. He used to work in a factory and began to learn Python Web in October last year. Recently, he successfully got the offer of being a Python engineer in an Internet company in Shanghai and successfully completed the job transfer 🚀

Although she is a newcomer to the workplace, shanguo has become an old PyCharm driver. Here, she shares her most commonly used PyCharm skills in work.

#0. PyCharm

MAC Win #1. Check out the use library source code

PyCharm replied on Stackoverflow

Often hear people say, look at the source. Source code can not only help us understand the mechanics, but also learn the best practices of a good library or framework.

When calling the library, you can click Command+B almost anywhere you’re curious and easily jump to the source code for classes, methods, functions, and variables.

The operation is as follows:

PyCharm 1.PyCharm

#2. Get your code PEP8

Do you follow the PEP8 specification strictly when writing Python code? You have to abide by it, otherwise it will be bad if the code is posted on Github or zhihu. However, if you rely on the naked eye to check and pay attention to the word, you will be too tired to rely on PyCharm to do this job, Command+Option+L, one key PEP8 walk.

#3. Newbies have no need to worry about installing libraries

If you are new to PyCharm, you can install libraries using the familiar graphical interface instead of being stuck in a command line.

The operation is as follows:

When we need to find a file name in a project, type Command + Shift + O, and then enter the file name you want to find. If you can’t remember your full name, just type in the initial and Pycharm will prompt you. For example, if I want to find a file called test_errors.py, I can just type tee to find it. Or to query test_errors_1.py, just type tee1.

#5. Quick selection of code blocks

How do you comment a block of Python code quickly? It’s not going to be a row by row…

To select a function, simply place the cursor in front of it and click Command + Option + Shift + [to select the Command + / comment for the current code block.

#6. Quickly insert commonly used code

Sometimes you need to type very long code, such as if name == ‘main’:, instead of just using Command + J, you can insert common code directly.

#7. Run/debug code

Running code and debugging code are probably the most common shortcuts for most people.

Mac:

Control + R: Run the current code directly

Control + D: Run the code in Debug mode

Windows/Linux:

Shift + F10: Run the current code directly

Shift + F9: Run code in Debug mode

#8. Indent your code block

When writing a front page, you often need to change the indent of a large chunk of code. Use Shift + up/down to select the indent, and then use Tab to indent.

#9. Expand/shrink the code

When a project is scaled to a certain size, there will inevitably be a lot of methods/functions, so we can use the Command + Shift + – symbols to shrink the code, mainly for easy viewing.

#10. Show multiple pages

You can still use PyCharm to view multiple files on one screen if your company is unwilling to configure two screens for you. Click on the file name in the current navigation and right-click Split Horizontally or Split Horizontally.

Operating as follows

  1. Novices no longer worry about installing libraries _ Tencent Video

Originally this article should end here, the other day accidentally chatting with Shan Guo (the author of the above dry goods post), after listening to his experience, I was deeply moved… So here’s the author’s real job search story, and I’m sure you can find out about yourself.

First met Python

My name is Liu Shanguo. I just turned 20 years old. Compared with my peers, I seem to have a lot of experience. After graduating from technical secondary school at the age of 18, I went to work in a factory in Nanjing, working 12 hours a day, six days a week, which happened to be the same as the 996 of some Internet companies now. There was no BUG in the plot, but for a young man less than twenty years old, a glimpse of the leader’s life is a little scary. I thought to myself, or toss toss toss!

In April 2016, as if getting an electric shock, I uninstalled all my online games, bought Python tutorial books, and started learning to program. From April to October, AFTER more than half a year of self-study, I have learned all the basic knowledge. In October, I signed up for the Python course of netease Cloud Class and mastered the knowledge of website construction. At the end of 2016, I bought a domain name and a server and spent my Spare time during Chinese New Year writing a blog in bits and pieces for a month, eventually producing a crude product: Bowenblog.me

About changing careers

At the beginning of 2017, I quit my job in the factory and came to Shanghai to find a job alone. At this point I had a simple, clear goal — to be a Python engineer. In addition to taking the time to prepare my resume, I also sought advice and help from seniors in forums and communities. There are not a few people like me who become a monk on the way, so it is also very important to seek the experience of predecessors to guide employment.

In addition to preparing a strong technical foundation to withstand the difficulties of the written test, the soft power of the interview should not be underestimated. Ask yourself a lot of questions about yourself and your understanding of your position.

It took me nearly a month from preparing my resume to successfully applying for a job. Every company is very cautious about hiring employees. This requires job seekers to have a very adequate preparation. When I interviewed the company I work for now, it took me more than two hours to complete the written test, HR interview and even the final CTO interview. We talked about all aspects of our work and finally “made it”.

When I finally got the job and received the acceptance notice, I had mixed feelings. When I refused to play games with my roommates and started typing the ghost characters that they could not understand, I felt like a freak. I had no one to share with me the suffering of hard thinking and the joy of producing my work. In the dead of night, I was really tired of studying textbooks. A month of job hunting experience, let anxiety nibbled my willpower…

These trials have come to an end with my successful career change, and my persistence and choice have paid off. After getting rid of the high substitute and repetitive heavy physical labor in the factory, NOW I can finally do the work I like! Although the work of an engineer is not easy, every time I learn, I am improving my irreplaceability, enhancing my value and helping myself to do more creative work. The road ahead still needs to beat monsters to upgrade, and I am still full of expectations!

Write in the last

It’s been months since I was hired, but I’m afraid to relax. The leap from factory floor to Shanghai office is just the beginning. A lot of times, WHEN I was about to give up, I thought, did I really try? Is this where I want my life to be? I knew the answer was no, so I chose to keep fighting. I have got a college degree, I am still applying for the English exam and applying for my undergraduate degree. I firmly believe that I can run faster and better. The python Core Programming Edition 2 from my beginning days of programming still sits on my desk as a reminder that my dissatisfaction with the status quo is the motivation I need to continue to get better.

Around the world, countless people perform miracles every day. Poor background, bad environment is no reason for us to stay where we are, drink a bowl of chicken soup: it’s time to go!

The author of this article is Named Liu Shanguo. He used to work in a factory and began to learn Python Web in October last year. Recently, he successfully got the offer of being a Python engineer in an Internet company in Shanghai and successfully completed the job transfer 🚀

Although she is a newcomer to the workplace, shanguo has become an old PyCharm driver. Here, she shares her most commonly used PyCharm skills in work.

(Copyright: Muggle Programming)