会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴空无云
博客园
首页
新随笔
联系
管理
订阅
2021年11月26日
Python实现网络和IP地址计算
摘要: import math def bin_to_ip(bin_str): if len(bin_str) < 32: bin_str ='%s%s'%('0' * (32 - len(bin_str)), bin_str) a = bin_str[0:8] b = bin_str[8:16] c =
阅读全文
posted @ 2021-11-26 09:37 晴空无云
阅读(406)
评论(0)
推荐(0)
公告