- 博客(7)
- 收藏
- 关注
原创 OpenWrt编译并添加自己写的应用-基于MT7620a
创建应用所需的目录 在trunk/package/ramips/applications/创建helloworld目录 (也可以在trunk/package/目录下创建helloworld目录)目录内的文件结构其中最外层Makefile的内容############################################### OpenWrt Makefile for hello
2016-01-22 18:13:43
1221
翻译 迭代器 table
local iteratorfunction allwords () local state = {line = io.read(), pos = 1} return iterator, stateendfunction iterator (state) while state.line do local s, e = string.find(state.line, "%w+"
2015-12-09 17:12:46
359
翻译 lua 链表 迭代器
local function getnext (list, node) if not node then return list else return node.next endendfunction traverse(list) return getnext, list, nilendlist = nilfor line in io.lines() do if
2015-12-09 16:43:47
366
翻译 读入一行数据,按
function allword () local line = io.read() local pos = 1 return function () while line do local s,e = string.find(line, "%w+", pos) if s then pos = e + 1 return string.sub(line, s,
2015-12-08 16:55:15
316
翻译 阶乘
--defines a factorial functionfunction fact (n) if n == 0 then return 1 else return n * fact(n - 1) endendprint("enter a number:")a = io.read("*n")print(fact(a))
2015-11-24 10:45:06
309
转载 opkg 安装错误,not found returned status 127
echo -e "\ndefault_postinst() {\n\treturn 0\n}\ndefault_prerm() {\n\treturn 0\n}" >> /lib/functions.sh
2015-11-20 11:03:21
2633
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人