Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.
This repository tracks the latest version from cpython, e.g. ipaddress from cpython 3.8 as of writing.
Note that just like in Python 3.3+ you must use character strings and not byte strings for textual IP address representations:
>>> from __future__ import unicode_literals >>> ipaddress.ip_address('1.2.3.4') IPv4Address(u'1.2.3.4')
or
>>> ipaddress.ip_address(u'1.2.3.4') IPv4Address(u'1.2.3.4')
but not:
>>> ipaddress.ip_address(b'1.2.3.4') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "ipaddress.py", line 163, in ip_address ' a unicode object?' % address) ipaddress.AddressValueError: '1.2.3.4' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?
状元郎是什么生肖 | 种草是什么意思 | 猴跟什么生肖相冲 | 荞麦枕头有什么好处 | 甘油三酯高吃什么食物降得快 |
墨西哥用什么货币 | 第一次世界大战是什么时候 | 黑匣子是什么颜色 | 糠是什么 | 440分能上什么大学 |
麻辣拌里面都有什么菜 | 10.1是什么星座 | 呼吸重是什么原因 | 柠檬泡水有什么好处 | 什么是脂肪瘤 |
脸上长斑吃什么药调理 | 纳气是什么意思 | 槐子泡水喝有什么功效 | 理想型是什么意思 | 三月出生的是什么星座 |
猴赛雷什么意思beikeqingting.com | 什么药能提高免疫力hcv8jop8ns2r.cn | 不什么其什么hcv9jop3ns6r.cn | 登革热吃什么药hcv9jop4ns8r.cn | 婴儿游泳有什么好处和坏处hcv9jop4ns2r.cn |
什么春白雪hcv7jop5ns2r.cn | 梦见去墓地是什么预兆hcv9jop7ns3r.cn | 月经期肚子疼是什么原因wzqsfys.com | 奥利司他排油是什么油hcv9jop0ns1r.cn | 立冬北方吃什么mmeoe.com |
免疫球蛋白e高说明什么hcv7jop5ns4r.cn | 三大产能营养素是什么hcv7jop9ns6r.cn | 麦粒肿用什么眼药水xinmaowt.com | 摊手是什么意思hcv8jop9ns1r.cn | 知性是什么意思hcv8jop0ns0r.cn |
6月7号是什么星座xinmaowt.com | 白细胞低是什么原因adwl56.com | viagra是什么药hcv7jop5ns5r.cn | 车厘子什么季节成熟creativexi.com | 情不自禁的意思是什么hcv7jop6ns2r.cn |