Checking for Internet connection with python

后端 未结 0 1545
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 16:57

Is this a good way to check for Internet connection in python? As far as I know I shouldn\'t use bare exceptions.

import urllib.request
import time


def conn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题