import IPy
def checkip(address):
try:
version = IPy.IP(address).version()
if version == 4 or version == 6:
return True
else:
return False
except Exception as e:
return False
判断ipv4和ipv6
Comments 0
Sign in to comment and like
← More postsThat’s all for now. Thanks for reading.
No comments yet.