parsebgp.py 文件源码

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

项目:pyability 作者: syedur-rahman 项目源码 文件源码
def check_if_ipv4address(potential_address):
    """ check if ipv4address
    this is used in conjunction with the flexible parse function
    and determines if the word is an ipaddress in a smart way """

    try:
        ipaddress.IPv4Interface(potential_address)
        return True
    except ipaddress.AddressValueError:
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号