执行shell带返回值
2023-01-24 09:16:15 最后更新
s 命令="cd /storage/emulated/0/iApp/\nls"
call(返回,"mlua","sh.shell",命令)
ss("执行结果为:"+返回,内容)
tw(内容)
//以下代码放 sh.mlua
function shell(cmd)
  local stream = io.popen(cmd);
  local r = stream:read("all");
  stream:close();
  return r;
  end
--真的无聊写的……残页