会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
珍惜吧
随笔档案-2018年04月
python判断合法IP并区分内网和外网地址
2018-04-22 00:16 by ndzj, 2788 阅读,
收藏
,
摘要: import redef legit_ip(_ip): compile_ip = re.compile('^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$') if compile_ip.match(_ip): r
阅读全文
0 Comment
About