摘要: 使用python解析有道词典导出的xml格式单词,统计各个首字母出现的次数,并按次数由多到少进行排序---### 相关实现导出的xml格式如下```xml portion 2 ```使用python3自... 阅读全文
posted @ 2014-10-12 20:39 liaoyu 阅读(2233) 评论(0) 推荐(0) 编辑
摘要: 微博登录的实现代码来源:[https://gist.github.com/mrluanma/3621775](https://gist.github.com/mrluanma/3621775)---### 相关环境使用的python3.4,发现配置好环境后可以直接使用`pip` `easy_inst... 阅读全文
posted @ 2014-10-01 22:31 liaoyu 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: 最近初学PHP,看到Chive这个好玩的数据库管理工具,在登录时遇到这样的错误提示信息:CDbConnection failed to open the DB connection.我的PHP版本是php-5.3.10只需修改php安装目录下的php.ini中的extension=php_pdo_m... 阅读全文
posted @ 2014-08-09 16:22 liaoyu 阅读(443) 评论(0) 推荐(0) 编辑
摘要: JavaWeb构建的在线图书商城 阅读全文
posted @ 2014-07-31 21:40 liaoyu 阅读(20067) 评论(13) 推荐(2) 编辑
摘要: 晚上打算把播放器下载下来的音乐拷贝到mp3里边,但是它是如下形式存放的,相当头痛……作为程序员,想到使用python来遍历这个目录,并将有大于限制的音乐文件拷贝到指定目录,相关实现代码如下:# author:liaoyu# date :2014-05-30import osimport reimp... 阅读全文
posted @ 2014-05-30 00:38 liaoyu 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 根据Java的Pattern和Matcher类通过分组解析出身份证的年月日:public class GetDateInIdCard { public static void main(String[] args) { String idCard = "0000001991032... 阅读全文
posted @ 2014-05-28 17:03 liaoyu 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 引言:在windows下的mysql数据库导出SQL文件,在Linux下导入后显示为乱码。1、启动Mysql服务及创建数据库(下面uushop为我将创建的数据库名)service mysqld startcreate database uushop;2、导入Mysql文件方式--未登录mysql -... 阅读全文
posted @ 2014-05-09 12:23 liaoyu 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/liaoyu/p/uudisk.html源码地址:https://github.com/liaoyu/uudisk 前段时间为是练习JQuery和Java遍历目录,写了一个JavaWeb(使用Jsp+Servlet)的例子。源码是Myecli... 阅读全文
posted @ 2014-05-06 21:05 liaoyu 阅读(12482) 评论(0) 推荐(3) 编辑