Python - numpy 使用方式
The logic is: ping public ip (google dns 8.8.8.8), if the ping fails, then goto :RESTART and restart network adapter with name “LAN”, after this loop again from the start (if ping is OK, then do nothing and ping in loop to check if adapter is connected to internet)