取得当前时间小时: d.getHours() 取得当前分钟: d.getMinutes()) 取得当前秒: d.getSeconds() ...
可以使用Lua编写一个脚本来按行解析字符串并保存主机DNS记录。以下是一个示例代码: local dns_records = {} -- 存储解析后的DNS记录 local function parse_dns_records(str) local current_record = {} -- 当前正在处理的记录 for line in str:gmatch("[^\r\n]+") do if line:match("^%s*%-%-") ...
取得当前时间小时: d.getHours() 取得当前分钟: d.getMinutes()) 取得当前秒: d.getSeconds() ...