def ValidateIP(ip):
"""
Check if an IP is public or not.
Public IP is any IP that is neither of:
- private
- loopback
- broadcast / multicast
- link-local
Returns True on success and False on failure.
Raises a ValueError exception if the input is not of type
ipaddress.IPv4Address or ipaddress.IPv6Address.
"""
return __validateIP(ip)
inputtype.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录