<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lhf2009913的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lhf2009913</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lhf2009913]]></copyright><item><title><![CDATA[java优化hashcode的使用]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/79150141</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/79150141</guid><author>lhf2009913</author><pubDate>Wed, 24 Jan 2018 14:16:50 +0800</pubDate><description><![CDATA[A、首先对于两个对象是否相等，我们首先来判断是否hashcode相等，如果相等则比对Equals是否想等，如果是hashcode想等则再比较equals是否想等，想等则任务两个对象相等、如果hashCode相等则不需要判断Equals是否想等认为是不等的。
这里引述别人博客的描述：
首先需要明确下 hashCode和equals的关系：
hashCode 顾名思义是一个“散列值码”

散]]></description><category></category></item><item><title><![CDATA[Django 学习教程]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/44563251</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/44563251</guid><author>lhf2009913</author><pubDate>Mon, 23 Mar 2015 14:28:19 +0800</pubDate><description><![CDATA[1创建一个项目此名称是app
django-admin.py  app
2进入app目录可以看到 __init__.py可以看到setting.py,urls.py, manage.py
__init__.py：是当前目录为工作目录
‘urls.py根据此文件调用对应的试图方法，本质为url和试图函数间的映射表，但是视图函数必须在python的搜索路径上。
settings.py:项目的]]></description><category></category></item><item><title><![CDATA[nginx做两件事 之为什么要用其做反向代理]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/44157225</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/44157225</guid><author>lhf2009913</author><pubDate>Mon, 09 Mar 2015 17:19:22 +0800</pubDate><description><![CDATA[nginx 这个轻量级、高性能的 web server 主要可以干两件事情：

　　〉直接作为http server(代替apache，对PHP需要FastCGI处理器支持)；
　　〉另外一个功能就是作为反向代理服务器实现负载均衡

　　以下我们就来举例说明如何使用 nginx 实现负载均衡。因为nginx在处理并发方面的优势，现在这个应用非常常见。当然了Apache的 mod_proxy和mod]]></description><category></category></item><item><title><![CDATA[java的内部类的总结]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/43527957</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/43527957</guid><author>lhf2009913</author><pubDate>Thu, 05 Feb 2015 15:10:40 +0800</pubDate><description><![CDATA[内部类是和包括类之间是透明的，可以使用互相的参数。
第二个就是内部静态类

静态内部类/静态嵌套类

这个其实并不应该叫做内部类了，因为其并不具备内部类的完全权限，在使用上与一般的类基本一样；那为什么会有这个的存在？
在我看来这个类的存在是为其包括类服务；意思是可以单独服务，不被外面的类所知晓；如这样：


public class E {      private void s]]></description><category></category></item><item><title><![CDATA[python的高级编程--之进程]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/43526963</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/43526963</guid><author>lhf2009913</author><pubDate>Thu, 05 Feb 2015 13:53:28 +0800</pubDate><description><![CDATA[Python 学习入门（24）—— 进程高级
2013年02月26日 ⁄ 综合⁄ 共 2288字 ⁄ 字号
小 中 大 ⁄ 
评论关闭


初步了解Python多进程之后，我们可以继续探索multiprocessing包中更加高级的工具。这些工具可以让我们更加便利地实现多进程。

 

1. 进程池

之前我们使用Process创建进程的时候，每次创建一个进程。进程池 (P]]></description><category></category></item><item><title><![CDATA[sql数据库]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/43526733</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/43526733</guid><author>lhf2009913</author><pubDate>Thu, 05 Feb 2015 13:43:32 +0800</pubDate><description><![CDATA[基础数据库的使用以及 这规则表达式的使用对于 数据库来说是非常有用的
关系型数据库对数据库的操作就是sql语句。真正的sql在关系型数据库来说是非常重要的哦。


可以系统的学习一下mysql的数据库的使用部分，而且还可以研究下数据库操作语句的的执行的部分的使用情况，比如数据库的操作。mysql的整体上的把握上是非常有必要的。


所以数据的操作只要使用数据库的知识就是ok的。]]></description><category></category></item><item><title><![CDATA[python 装饰器与AOP]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/42394793</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/42394793</guid><author>lhf2009913</author><pubDate>Sun, 04 Jan 2015 17:15:44 +0800</pubDate><description><![CDATA[缓存



[python] 
view plaincopyprint?


from functools import wraps    lineseq = '==' * 20    def memo( func ):            cache = {}       @wraps( func )      def wrapper( *args ):          re]]></description><category></category></item><item><title><![CDATA[python]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/42267959</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/42267959</guid><author>lhf2009913</author><pubDate>Tue, 30 Dec 2014 16:27:24 +0800</pubDate><description><![CDATA[http://www.cnblogs.com/lovemo1314/category/268866.html
一个ｐｙｔｈｏｎ使用的ｂｌｏｇ可以方便　　学习]]></description><category></category></item><item><title><![CDATA[python多线程（等待）主线程和子线程的同步执行]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/42265457</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/42265457</guid><author>lhf2009913</author><pubDate>Tue, 30 Dec 2014 14:09:00 +0800</pubDate><description><![CDATA[#!/usr/bin/env python
# -*- coding: utf-8 -*-

import threading
import time
def fun(name, ls_name, front_thread = None):
    '''
    线程启动函数
    通过front_thread来使用线程有序的运行
    '''
    time.cloc]]></description><category></category></item><item><title><![CDATA[Python 学习笔记【dict的操作方法】]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41799657</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41799657</guid><author>lhf2009913</author><pubDate>Mon, 08 Dec 2014 09:14:50 +0800</pubDate><description><![CDATA[dict 称作字典(dictionary)。
常见的形式
Dict = {'spam':1,'eggs':2}  单层key，value形式的字典
Dict = {'mans':{'jack':1,'john':2}}  嵌套字典


普通的用法
len(Dict) 长度，储存对象的数量
Dict["spam"] = 3 新建/修改键值
del Dict["spam"]  删除键]]></description><category></category></item><item><title><![CDATA[python使用的总结Learning Python（三）]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41747387</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41747387</guid><author>lhf2009913</author><pubDate>Fri, 05 Dec 2014 14:31:57 +0800</pubDate><description><![CDATA[停了好一段时间没去看Python，上周leader把一个别组leader写的Python工具给我看，叫我看懂后教大家怎么用，寒。这其实是一个用来 解析我们项目代码的工具，主要有一个XML格式object解析模块和一个txt格式code解析模块。还有一些辅助模块。
    唉，牛人写的就是不一样，刚开始看让我傻眼了好久。代码里面通篇的lambda表达式，还带多层嵌套的，最长的一个语句是一个嵌套la]]></description><category></category></item><item><title><![CDATA[SQLAlchemy数据建模过程的改进]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41699727</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41699727</guid><author>lhf2009913</author><pubDate>Wed, 03 Dec 2014 17:18:09 +0800</pubDate><description><![CDATA[SQLAlchemy数据建模过程的改进
2011-08-25 15:50:24     我来说两句      
收藏  我要投稿

SQLAlchemy是python里面最好的orm框架(注意, 没有"之一"两个字), 不过它定义orm的过程比较繁琐, 要分别定义table和model, 然后在两者之间弄个mapper. 纯手工的过程就是这样的, 一步步来, 有点体力活的感觉. 其实我没有]]></description><category></category></item><item><title><![CDATA[SQLAlchemy指南(tutorial)]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41695855</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41695855</guid><author>lhf2009913</author><pubDate>Wed, 03 Dec 2014 13:20:40 +0800</pubDate><description><![CDATA[SQLAlchemy指南(tutorial)



对应版本:
0.3.4



目录

1 安装

1.1 安装SQLAlchemy1.2 安装一个数据库API
2 快速开始

2.1 导入2.2 连接到数据库
3 SQLAlchemy是两个库的包装4 操作数据库对象

4.1 定义元信息，绑定到引擎4.2 创建表格4.3 插入记录4.4 查询4.5 操作记]]></description><category></category></item><item><title><![CDATA[python-ConfigParser模块【读写配置文件】]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41680167</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41680167</guid><author>lhf2009913</author><pubDate>Tue, 02 Dec 2014 16:21:04 +0800</pubDate><description><![CDATA[﻿﻿
http://www.codesky.net/article/201003/122500.html
http://www.linuxso.com/linuxbiancheng/8987.html

以下的文章就是对python 读写配置文件的具体方案的介绍

1，函数介绍

1.1.读取配置文件
-read(filename) 直接读取ini文件内容
-sections(]]></description><category></category></item><item><title><![CDATA[有预谋的生活]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/41120349</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/41120349</guid><author>lhf2009913</author><pubDate>Fri, 14 Nov 2014 16:22:57 +0800</pubDate><description><![CDATA[这厮告诉我，他是有预谋的，因为他将来想创业，涉及某些领域。最好的办法就是跳槽到相关公司，熟悉业务、认识人脉、偷学本事。
另外，他告诉我：自己的领导和老板是最值得利用的人脉，这帮人不利用过期作废]]></description><category></category></item><item><title><![CDATA[13幅逻辑图，领略杜克大学的经典思维]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/39673913</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/39673913</guid><author>lhf2009913</author><pubDate>Mon, 29 Sep 2014 18:50:25 +0800</pubDate><description><![CDATA[借杜克大学的 13 幅逻辑图与您一块探讨关于生活的哲学，这 13 幅图将帮助您更清晰地了解自己的行为、目标及思考问题的方式，让你选择正确的方式去实现心中所想与所需。
 
　　No.1、什么是生活
经典思维-什么是生活" src="http://www.myexception.cn/img/2014/09/17/1a40ae61-b654-484e-bb5a-014cdfb2ead7.jpg"]]></description><category></category></item><item><title><![CDATA[Mongo Query Language 类似 Sql 语句]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/39138099</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/39138099</guid><author>lhf2009913</author><pubDate>Mon, 08 Sep 2014 19:32:36 +0800</pubDate><description><![CDATA[Mongo Query Language 类似 Sql 语句
$query - 查询类似于sql中的　where
$orderby - 排序{x:1},1为升序　-1为降序
$query - 查询类似于sql中的　where
$orderby - 排序{x:1},1为升序　-1为降序


//select * from table where name="abeen" order b]]></description><category></category></item><item><title><![CDATA[用python实现一个简单的cache系统]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/39008853</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/39008853</guid><author>lhf2009913</author><pubDate>Tue, 02 Sep 2014 17:13:06 +0800</pubDate><description><![CDATA[2013年01月02日 
⁄ 综合 ⁄ 共 2016字 ⁄ 字号 小 中 大 
⁄ 评论关闭 


原文查看：
http://www.ibaiyang.org/2013/01/04/python-decorator-introduction/

本文章的代码没有高亮，请查看原文，格式比较好。
本篇文章将介绍python中的decorator，中文翻译为 装饰器 魔法。在这篇文章中]]></description><category></category></item><item><title><![CDATA[微型 Python Web 框架： Bottle]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/38944255</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/38944255</guid><author>lhf2009913</author><pubDate>Sat, 30 Aug 2014 14:51:56 +0800</pubDate><description><![CDATA[Bottle 是一个非常小巧但高效的微型 Python
 Web 框架，它被设计为仅仅只有一个文件的Python模块，并且除Python标准库外，它不依赖于任何第三方模块。

路由（Routing）：将请求映射到函数，可以创建十分优雅的 URL模板（Templates）：Pythonic 并且快速的 Python 内置模板引擎，同时还支持 mako, jinja2, cheetah 等第三方]]></description><category></category></item><item><title><![CDATA[What does functools.wraps do?]]></title><link>https://blog.youkuaiyun.com/lhf2009913/article/details/38943941</link><guid>https://blog.youkuaiyun.com/lhf2009913/article/details/38943941</guid><author>lhf2009913</author><pubDate>Sat, 30 Aug 2014 14:13:31 +0800</pubDate><description><![CDATA[up vote
133 
down vote 
favorite
80





In a comment on the 
answer to another question, someone said they weren't sure what functools.wraps was doing. So I'm asking this question so that ]]></description><category></category></item></channel></rss>