inputtype.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:archive-Holmes-Totem-Service-Library 作者: HolmesProcessing 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号