摘要: sublime text2 用Package Control安装插件错误,调用控制台发现错误: UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128) 这是python中调用编码错误造成的。 解决方法1:可以查看错误文件,然后添加正确编码。 import sys reload(sys) sys.setdefaultencoding('utf8') 解决方法2:如果程序在中文目录,就把它移到英文目录下。。。 阅读全文
posted @ 2012-11-07 21:21 nzlov 阅读(363) 评论(0) 推荐(0) 编辑
摘要: http://yun.baidu.com/disk/beinvited?uk=3859318036下面是360的~谢谢!http://yunpan.360.cn/invite/vulyuurrvey?sid=201 阅读全文
posted @ 2012-11-07 16:50 nzlov 阅读(122) 评论(0) 推荐(0) 编辑
摘要: // While you can edit this file, it's best to put your changes in// "User/Preferences.sublime-settings", which overrides the settings in here.//// Settings may also be placed in file type specific options files, for// example, in Packages/Python/Python.sublime-settings for python files 阅读全文
posted @ 2012-11-07 16:17 nzlov 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 也许是小弟学艺不精,便创造了"EMethodMap"来进行偷懒... EMethodMap.rar 1.初始化 (可以省略) 在调用之前必须进行初始化“EMethodMapManage”对象。 调用“EMethodMapManage”静态方法: EMethodMapManage.createEMethodMapManage(); 2.注册方法 方法原型 : public Object name(EMethodMessage msg); 将被调用的方法(public)注册到”EMethodMapManage“中。 /** * 将 obj ... 阅读全文
posted @ 2012-11-07 12:37 nzlov 阅读(309) 评论(0) 推荐(1) 编辑
摘要: import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.RandomAccessFile;public class PNGEncoder {/** * @author qpaber * PNG解码类 用于将数据写入PNG文件 */private static final byte[] _PNGEND = {(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x00, (byte)0x49,(byte)0x45,(byte)0x4 阅读全文
posted @ 2012-11-07 08:29 nzlov 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: 觊觎 jìyú龃龉 jǔyǔ囹圄 língyǔ魍魉 wǎngliǎng纨绔 wánkù鳜鱼 guìyú耄耋 màodié饕餮 tāotiè痤疮 cuóchuāng踟躇 chíchú倥偬 kǒnɡzǒnɡ 另:倥侗念kōngdòng。彳亍 chìchù谄媚 chǎnmèi女红 nǚgōng 古同“工”佝偻 gōulóu龟裂 guīliè 微细的裂纹(如砂浆、混凝土、抹灰面上的);颜料、釉或油漆薄膜,由于老化和 阅读全文
posted @ 2012-11-07 08:27 nzlov 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 作者: sqw0312 1 随机数的使用 头文件的引用 #import time.h #import mach/mach_time.h srandom() 的使用 srandom((unsigned)(mach_absolute_time() 0xFFFFFFFF)); 直接使用 random() 来调用随机数 2 在UIImageView 中旋转图作者: sqw03121 随机数的使用 头文件的引用 #import <time.h> #import <mach/mach_time.h> srandom()的使用 srandom((unsigned)(mach_abso 阅读全文
posted @ 2012-11-07 08:26 nzlov 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.Q:如何添加按钮? A:利用菜单或者精灵创建。2.Q:为什么菜单按钮无法使用? A:1)必须将菜单项对象添加到菜单对象中。 2)若利用菜单按钮进行场景切换时,若不使用切换特效,切记不要使用 [[CCDirector sharedDirector] replaceScene:[CCTransitionScene transitionWithDuration:1.2f scene:[MainMenu scene]]]; 这样的方式切换!只能使用: [[CCDirector sharedDirector] replaceScene:[MainMenu scene]];3.... 阅读全文
posted @ 2012-11-07 08:25 nzlov 阅读(226) 评论(0) 推荐(0) 编辑