wonter's recent timeline updates
wonter

wonter

V2EX member #304031, joined on 2018-03-28 13:14:36 +08:00
wonter's recent replies
@CodeDeer 你是?
Mar 29, 2018
Replied to a topic by suannva Python Python 处理子网掩码
如果是 Python3 的话,官方的 ipaddress 库了解

```python3
import ipaddress
first, *_, last = ipaddress.IPv4Network('172.14.0.0/24').hosts()
print('{} - {}'.format(first, last))
```
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3078 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 14:22 · PVG 22:22 · LAX 07:22 · JFK 10:22
♥ Do have faith in what you're doing.