lua中文件读写经常在游戏配置中用到,比如客户端的音效音乐开关等。
Lua官方API文档:点这里
I/O库为文件操作提供4个主要函数:io.open(),io.read(),io.write和io.close()。
io.open(文件路径,打开方式):以指定方式打开一个文件,打开成功返回一个文件句柄,失败返回nil和错误描述。
可以传入以下六种打开方式:...
分类:
其他好文 时间:
2014-08-09 11:42:44
阅读次数:
256
Multiplication PuzzleTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:165164-bit integer IO format:%lld Java clas...
分类:
其他好文 时间:
2014-08-09 11:24:57
阅读次数:
234
Moving TablesTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onZJU. Original ID:102964-bit integer IO format:%lld Java class name:M...
分类:
其他好文 时间:
2014-08-09 11:20:07
阅读次数:
341
转自:http://www.xuebuyuan.com/1396292.html,http://www.cocoachina.com/bbs/read.php?tid=88589First!!源代码里加入://判断当前是否为Android平台#if (CC_TARGET_PLATFORM == CC...
分类:
Web程序 时间:
2014-08-08 23:58:36
阅读次数:
713
#!/usr/bin/pythonimportreimportosimportsysimportpycurldefbuffer_line(monitor_log):buf=open("/data0/webinternal_monitor/%s"%monitor_log).read()bytes=os.popen(‘wc-c/data0/logs/%s‘%monitor_log).read().split("")[0]ifint(bytes)<int(buf):return0else:returnint(..
分类:
其他好文 时间:
2014-08-08 16:22:46
阅读次数:
373
What is Port Triggering?
If you have not read my explanation of port forwarding do so now. You can find it
here.
Port triggering is pretty simple once you know what port forwarding is. Port...
分类:
其他好文 时间:
2014-08-08 16:12:36
阅读次数:
362
1.页面跳转错误:Uncaught TypeError: Cannot read property 'afCSS3AnimateId' of undefined
原因:data-defer="" 跳转路径不正确
解决:路径正确即可
2.程序正在启动的圈圈一直
原因:转id冲突,出现重名id
解决:id冲突,出现重名id...
分类:
移动开发 时间:
2014-08-08 16:08:46
阅读次数:
264
本文转自:http://www.cfanz.cn/index.php?c=article&a=read&id=65289最近换了新电脑,装了win7 64位系统,安装了各种开发环境,也安装了android开发环境,与xp下的安装基本一致,记录下简单步骤及可能遇到的问题,供后人参考。1.jdk下载地址...
分类:
移动开发 时间:
2014-08-08 15:09:36
阅读次数:
351
1 #!/usr/bin/python 2 3 read = file('thread-1554-1-1.html','r') 4 wr = file('list','w') 5 6 while 1: 7 line=read.readline() 8 if 'href' in ...
分类:
编程语言 时间:
2014-08-08 12:27:06
阅读次数:
629
众所周知innodb的锁是行级锁,这样说也没有问题,只是还可以细分而已。推荐阅读何登成大牛的博客http://hedengcheng.com/?p=771innodb的锁有三种算法,分别如下:Read Lock:单个记录上的锁Gap Lock:间隙锁,锁定一个范围,但不包含记录本身Next-Key ...
分类:
数据库 时间:
2014-08-08 04:18:55
阅读次数:
478