The python project is in actual combat at the same time, multi-threading quickly tries to ping multiple IP addresses and displays the output

Summary

Last updated: 2021.02.04 (has achieved full functionality, optimizing the timing of the update, CSDN phone APP display the code was incomplete, open to provide a better reading computer)
paper types: practical application class (non-knowledge to explain)

Different from the ping method on the network, this article uses multiple threads to quickly ping multiple IP addresses at the same time, which can check the connectivity of hundreds of IPs in just a few seconds, instead of trying to ping IP addresses one by one.
1. Knowledge points of this article: 1. python multi-threading, 2. ping instruction summary, 3. python thinter simple interface programming.
2. The structure of this article: 1. Briefly introduce the knowledge points first, 2. Post the debugging code that can be run directly after copying in the form of a complete paragraph, so that readers can debug each piece of code posted.
3. The method of this article is implemented: python multi-threading Establish multiple ping tasks, and operate and display in the interface written by thinter
4. Application of the method in this article: 1. Can be applied to quickly find the device IP mounted under the route, 2 can find the PLC that has forgotten to connect to the IP, 3. Find the current PC network port connectable IP

Tip: The following is the content of this article, the following cases are for reference

Guess you like

Origin blog.csdn.net/baidu_37611158/article/details/114819153