What are the useful gadgets for python?
This article mainly shows you "what are the good gadgets for python". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn what are the good gadgets for python.
Useful gadgets
1. One-click web service sharing
In Python, you can enable a HTTP server with one click of http.server, which is a very convenient sharing tool:
Python-m http.server
Open a server on the default listening port of 8000. You can customize the port, such as 8888.
Python-m http.server 8888
The code automatically completes the Jedi
Jedi is a library for automatic completion of Python code and static analysis. Jedi allows us to tap the code efficiently.
At present, Jedi has provided most of the editor plug-ins, including Vim (jedi-vim), VSC,Emacs,Sublime,Atom and so on.
two。 Beautify abnormal output pretty-errors
The default error output of Python is very messy, with a large head and poor readability. At this point, you need to use pretty-errors as an error beautification tool.
The above is all the contents of the article "what are the good gadgets for python". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!