In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Python development tools for beginners is what kind of, I believe that many inexperienced people are helpless about this, for this reason this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
Python development tools are many, the larger heavy weapons are Pycharm,Anaconda,VS Code. However, although these tools are very powerful and have a lot of libraries, they are too heavy for a small white who is just ready to start Python. The learning cost is relatively high and a bit complicated! I used to recommend Pycharm very strongly, but Pycharm Professional Edition is a charge, there is no slightly lightweight IDE, today I recommend a small artifact Thonny.
Thonny is a Python IDE for beginners, the interface is relatively simple, we look at the picture above to know, the menu is not much, at a glance, more suitable for beginners. Developed by Tartu University in Estonia, it is easy to use and supports plugins.
1. installation
Open the website https://thonny.org/and download the corresponding version. It has Win,Mac and Linux versions. Installation is very convenient, and the most important thing is that it directly built-in Python 3.7 interpreter, no need to install Python version.
Above is a simple Hello world and print the current version, you can see that Py3.7 is built in. Open Preference/Interpreter in the menu panel to see that it uses Thonny's default Python interpreter.
2. It's easy to see variables.
Thonny comes with a view variable window, when you write the code, you can click view/variables to view the variables of your entire code, you can see the reference between the address of the variable and the variable at a glance, a gospel for beginners, you can understand the code more deeply.
In addition to typing code in the window above, you can also type code directly in the command line mode at the bottom left.
3. code debugging
Just press Ctrl + F5 instead of F5 and you can run the program step by step without breakpoints. Press F6 for large steps and F7 for small steps. Steps follow program structure, not just lines of code.
Or you can click the crawler debug button in the red box at the top left, and then click the step in/over button in the blue box to debug step by step.
4. nested calls to functions
Stepping into a function call opens a new window with a separate local variable table and code pointers. A good understanding of how function calls work is especially important for understanding recursion.
For example, a very simple recursive function above, through debug can see how the function presses stack layer by layer, Thonny will use a yellow label to move one line at a time to explain to you how the code works.
5. Code hinting function
We usually encounter errors or report errors when writing code, and we often get confused! For veterans may often debug know what the problem is, but for novices very much hope to have some tips, what is wrong with my code ~~Thonny does very well, will give us some suggestions and tips to help Xiaobai learn Python, this is very human.
This tool I tried some or very nice, very lightweight, especially for beginners, conscience, you can observe Heap,stack,object and other memory information, help familiar with Python code is very helpful, and the interface is relatively simple, save a lot of trouble, you can try.
After reading the above, do you know how to use Python development tools for beginners? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.