摘要:
(dofile - loadfile) dofile从LUA源码读入chunk编译为字节码并执行,loadfile则是执行字节码。function dofile (filename) local f = assert(loadfile(filename)) return f() end(loadstring) loadstring与loadfile 相似,只不过它不是从文件里读入chunk ,而是从一个串中读入。local s = "print('LUA')"assert(loadstring(s))()(require)Lua 提供高级的 require 阅读全文
posted @ 2013-05-03 23:09
梦想照进灵魂
阅读(896)
评论(0)
推荐(0)
摘要:
1 string -> num1) atoi(int)2)sscanf(const char *buffer,const char *format,[argument ]...)#include <stdio.h>int main(void){ int value; sscanf("0x11", "%x", &value); printf("%d\n", value); return 0;}2 sed\awk#!/bin/sh##!/system/bin/shINPUT_FILE=$1# sed 正则表达式选 阅读全文
posted @ 2013-05-03 17:43
梦想照进灵魂
阅读(221)
评论(0)
推荐(0)
浙公网安备 33010602011771号