Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the useful gadgets for python?

Shulou Source: shulou.com Published: 2022-06-01 05:29:19 10月04日 Update

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!

Tags: Handyman easy to use code content tools articles services servers ports one click learning help output head readability plug-ins easy to understand more useful organized Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info NVidia Shulou Technology Shulou Information MySQL