1,使用python链接mysql # -*- coding: utf-8 -*-#
connect.py --连接到MySQL服务器import sysimport MySQLdbtry: conn = MySQLdb.connect(db =
"cookbook", host = "localh...
分类:
数据库 时间:
2014-07-22 23:11:15
阅读次数:
518
探索javascript中null和undefined的深渊译05 January
2014当讨论JavaScript中的原始数据类型时,大多数人都知道的基本知识,从String,Number到Boolean。这些原始类型相当简单,行为符合常识。但是,本文将更多聚焦独特的原始数据类型Null和Und...
分类:
其他好文 时间:
2014-07-22 23:10:32
阅读次数:
507
参考资料:
http://sebug.net/paper/books/dive-into-python3/native-datatypes.html
http://blog.csdn.net/hazir/article/details/101597091、Boolean【布尔型】# coding.....
分类:
编程语言 时间:
2014-07-22 23:10:15
阅读次数:
371
#安装1.进入Eclipse, Help->Install New
Software,点击Add按钮:Name: PyDev(随意) Location:
http://pydev.org/updates2.选择PyDev下的PyDev for Eclipse,别的都不要选,否则依赖检查那关过不去。按...
分类:
编程语言 时间:
2014-07-22 23:07:35
阅读次数:
415
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
简要记录存储过程语法与Java程序的调用方式 一 存储过程
首先,我们建立一个简单的表进行存储过程的测试createtable xuesheng(id integer, xing_ming varchar2(25),
yu_wen number, shu_xue number);insert...
分类:
数据库 时间:
2014-07-22 23:06:13
阅读次数:
393
使用正则表达式,对QQ群聊天记录进行解析,用于分析日期、成员等维度发言情况。
原始文本是2014-03-28 15:04:25 №┽◎Eagle(369029696) 解析之后yyyy=2014mm = 03dd = 28hh =
15mi =04ss = 25nick = №┽◎Eagleqq =...
分类:
编程语言 时间:
2014-05-01 15:44:08
阅读次数:
388
原题地址:http://oj.leetcode.com/problems/reorder-list/题意:Given
a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You
must do this...
分类:
编程语言 时间:
2014-05-01 15:37:03
阅读次数:
441
作者:zccst思想原理:把字符串分割为数组,粒度为每一个字符。循环该数组,用正则替换原字符串对于字符,并计算替换前后字符串长度差值,即为该字符出现的次数。另外,还可以对重复次数进行排序。用到的知识点:1,正则表达式。基本写法,RegExp,replace的用法。2,数组中的sort。自定义函数排序...
分类:
其他好文 时间:
2014-05-01 14:49:08
阅读次数:
376