码迷,mamicode.com
首页 >  
搜索关键字:read    ( 19693个结果
Lua学习笔记8:文件读写
lua中文件读写经常在游戏配置中用到,比如客户端的音效音乐开关等。 Lua官方API文档:点这里 I/O库为文件操作提供4个主要函数:io.open(),io.read(),io.write和io.close()。 io.open(文件路径,打开方式):以指定方式打开一个文件,打开成功返回一个文件句柄,失败返回nil和错误描述。 可以传入以下六种打开方式:...
分类:其他好文   时间:2014-08-09 11:42:44    阅读次数:256
xtu read problem training 4 B - Multiplication Puzzle
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
xtu read problem training 4 A - Moving Tables
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
cocos2d-x 用浏览器打开网页
转自: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
路由器端口触发与转发---Port Forwarding & Port Triggering
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
appframework学习--appframework开发常见问题及解决方法(不定期更新)
1.页面跳转错误:Uncaught TypeError: Cannot read property 'afCSS3AnimateId' of undefined 原因:data-defer=""  跳转路径不正确 解决:路径正确即可 2.程序正在启动的圈圈一直  原因:转id冲突,出现重名id  解决:id冲突,出现重名id...
分类:移动开发   时间:2014-08-08 16:08:46    阅读次数:264
win7 64位下android开发环境的搭建
本文转自: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
use python get information from one page
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 Lock
众所周知innodb的锁是行级锁,这样说也没有问题,只是还可以细分而已。推荐阅读何登成大牛的博客http://hedengcheng.com/?p=771innodb的锁有三种算法,分别如下:Read Lock:单个记录上的锁Gap Lock:间隙锁,锁定一个范围,但不包含记录本身Next-Key ...
分类:数据库   时间:2014-08-08 04:18:55    阅读次数:478
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!