会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
笠航
懂的越多,不会的也就越多,知识之路是不断进取的。。。
博客园
首页
新随笔
联系
管理
订阅
2020年8月20日
Lua ip转整数
摘要: function _M.ipToInt( str ) local num = 0 if str and type(str)=="string" then local o1,o2,o3,o4 = str:match("(%d+)%.(%d+)%.(%d+)%.(%d+)" ) num = 2^24*o
阅读全文
posted @ 2020-08-20 15:42 笠航
阅读(826)
评论(0)
推荐(0)
编辑
公告