seajs 2.2.1在config文件中preload一次jquery,就可以在整个项目中使用jquery。如下:seajs.on('exec', function(module) { if (module.uri === seajs.resolve('jquery')) { win...
分类:
Web程序 时间:
2014-07-29 13:35:28
阅读次数:
238
cocos2d-x 3.0正式版最终公布了~ 等了好久~废话不多说,直接写方法.1.下载安装vc2012 ,我用的是旗舰版,传送门:点击打开链接2.下载cocos2d-x 3.0正式版,传送门:点击打开链接3.下载安装python,传送门:点击打开链接4.设置环境变量好后,打开cocos2d-x安装...
分类:
其他好文 时间:
2014-07-29 13:30:38
阅读次数:
253
Python 获取Twitter用户的所有的friends和followers...
分类:
编程语言 时间:
2014-07-29 13:19:24
阅读次数:
300
1.使用pipeline进行批量导入数据
class Redis_Handler(Handler):
def connect(self):
#print self.host,self.port,self.table
self.conn = Connection(self.host,self.port,self.table)
def execute(self, acti...
分类:
编程语言 时间:
2014-07-29 13:06:56
阅读次数:
394
PyGObject is a Python extension module that gives clean and consistent access to the entire GNOME software platform through the use of GObject Introspection. PyGObject provides full support of GObject Introspection and all of its features (callbacks, GVari...
分类:
编程语言 时间:
2014-07-29 13:04:47
阅读次数:
343
首先swift已经很火爆了,刚出来就当月排名16位。他为什么这么火?
是因为苹果这个品牌?还是其他原因?
作为码农(工作15+),我谈谈我的个人见解。
PC端开发语言有很多优秀的:JavaScript,Python,Ruby。
而移动端,Android 用的Java,速度慢,再加上没有任何新鲜感。
iOS,用的Objective-C;速度不慢,但是语法还不够简洁。
Swift出现...
分类:
其他好文 时间:
2014-07-29 12:55:47
阅读次数:
385
Hello World 每学一门语言开始的第一程序都是Hello World ,当然了Python也不例外,下面开始我们的Python第一个程序编写:1,命令行: (1)打开终端,输入python,则进入了Python环境 (2)语法:print() 输入命令:print('Hello World....
分类:
编程语言 时间:
2014-07-29 12:36:26
阅读次数:
228
转自:[Python] 字符串加密解密 作者:lovebread1. 最简单的方法是用base64:importbase64s1=base64.encodestring('helloworld')s2=base64.decodestring(s1)prints1,s2#aGVsbG8gd29ybGQ...
分类:
编程语言 时间:
2014-07-29 12:27:46
阅读次数:
539
路径:phpcms/module/content/classes/content_tag.class.php 添加如下方法 /** * 列表页标签:主要返回的是主表中数据与附表中数据 * @param $data */ public function lists_al...
分类:
Web程序 时间:
2014-07-29 12:20:08
阅读次数:
240
列表解析语法:[exprforiter_variniterable][exprforiter_variniterableifcond_expr]如果是有类的情况下,可以使用classPerson(object):9def__init__(self,name,age=0):10self.name=na...
分类:
编程语言 时间:
2014-07-29 12:12:06
阅读次数:
254