<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[PythonYin的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/PythonYin</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; PythonYin]]></copyright><item><title><![CDATA[python 字典有序]]></title><link>https://blog.csdn.net/PythonYin/article/details/43309637</link><guid>https://blog.csdn.net/PythonYin/article/details/43309637</guid><author>PythonYin</author><pubDate>Fri, 30 Jan 2015 17:42:07 +0800</pubDate><description><![CDATA[按照存放顺序
自定字典时则
date_container=collections.OrderedDict()




按照key大小顺序（若要按照value,则t[1]）
date_container=collections.OrderedDict(sorted(date_container.items(),key=lambda t:t[0]))]]></description><category></category></item><item><title><![CDATA[django实现fileupload]]></title><link>https://blog.csdn.net/PythonYin/article/details/43192649</link><guid>https://blog.csdn.net/PythonYin/article/details/43192649</guid><author>PythonYin</author><pubDate>Tue, 27 Jan 2015 11:30:11 +0800</pubDate><description><![CDATA[html:

form enctype="multipart/form-data">
    {% csrf_token %}
    div class="form-group">
        input type="file" class="file" id="test-upload" multiple>
        div id="errorBlock" class="help-]]></description><category></category></item><item><title><![CDATA[django中的静态文件配置]]></title><link>https://blog.csdn.net/PythonYin/article/details/42806265</link><guid>https://blog.csdn.net/PythonYin/article/details/42806265</guid><author>PythonYin</author><pubDate>Sat, 17 Jan 2015 16:34:23 +0800</pubDate><description><![CDATA[settings.py

#配置文件
STATIC_URL='/medias/'

TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
TEMPLATE_DIRS = BASE_DIR+'/templates',]]></description><category></category></item><item><title><![CDATA[Ubuntu下彻底卸载mysql]]></title><link>https://blog.csdn.net/PythonYin/article/details/42265685</link><guid>https://blog.csdn.net/PythonYin/article/details/42265685</guid><author>PythonYin</author><pubDate>Tue, 30 Dec 2014 14:22:02 +0800</pubDate><description><![CDATA[1、删除 mysql


1 sudo apt-get autoremove --purge mysql-server-5.0
2 sudo apt-get remove mysql-server
3 sudo apt-get autoremove mysql-server
4 sudo apt-get remove mysql-common
 (非常重要)

上面的其实有一些是]]></description><category></category></item><item><title><![CDATA[本地搭建elasticsearch]]></title><link>https://blog.csdn.net/PythonYin/article/details/42007511</link><guid>https://blog.csdn.net/PythonYin/article/details/42007511</guid><author>PythonYin</author><pubDate>Thu, 18 Dec 2014 16:50:43 +0800</pubDate><description><![CDATA[1.到http://www.elasticsearch.org/download/下载最新版的elasticsearch运行包
bin是运行的脚本，config是设置文件，lib是放依赖的包

2.到目录下启动 bin/elasticsearch
http://ip:9200/，查看页面信息，是否正常启动。status=200表示正常启动了，还有一些es的版本信息，name为配置文件中no]]></description><category></category></item><item><title><![CDATA[mysql数据库导出表数据 快速的方法 提高效率]]></title><link>https://blog.csdn.net/PythonYin/article/details/41983869</link><guid>https://blog.csdn.net/PythonYin/article/details/41983869</guid><author>PythonYin</author><pubDate>Wed, 17 Dec 2014 16:53:49 +0800</pubDate><description><![CDATA[1.连接到电脑 远程就ssh 
2.mysqldump: mysqldump -d  -u*** -p*** 数据库名 表名称>/tmp/***.sql 导出表结构 （vim 进去 修改表名称,记得注释掉 drop ... if is exist）
3.mysql -u*** -p***
4.source /tmp/***.sql 导出表结构 
5.INSERT INTO 新表名称 SEL]]></description><category></category></item><item><title><![CDATA[视频插件、图表插件（引用bootstrap）]]></title><link>https://blog.csdn.net/PythonYin/article/details/41947375</link><guid>https://blog.csdn.net/PythonYin/article/details/41947375</guid><author>PythonYin</author><pubDate>Mon, 15 Dec 2014 19:26:22 +0800</pubDate><description><![CDATA[html>
html>
head lang="en">
    meta charset="UTF-8">
    title>title>
    script type="text/javascript" src="/media/js/jquery-2.1.1.min.js" >script>
    script src="/media/js/Chart.js" >script>
   sc]]></description><category></category></item><item><title><![CDATA[django 后台传值，前台接收]]></title><link>https://blog.csdn.net/PythonYin/article/details/41945383</link><guid>https://blog.csdn.net/PythonYin/article/details/41945383</guid><author>PythonYin</author><pubDate>Mon, 15 Dec 2014 16:53:36 +0800</pubDate><description><![CDATA[views.py

def chart_first(request):
    result = WeatherCondition.objects.all()
    l=[]
    for res in result:
        #l.append({'tempature_date':res.tempature_date.strftime("%Y-%m-%d"),"tempature]]></description><category></category></item><item><title><![CDATA[文件上传插件]]></title><link>https://blog.csdn.net/PythonYin/article/details/41892143</link><guid>https://blog.csdn.net/PythonYin/article/details/41892143</guid><author>PythonYin</author><pubDate>Fri, 12 Dec 2014 12:06:40 +0800</pubDate><description><![CDATA[转载自： http://www.jq22.com/jquery-info230 

jQuery File Upload 是一个Jquery图片上传组件，支持多文件上传、取消、删除，上传前缩略图预览、列表显示图片大小，支持上传进度条显示；支持各种动态语言开发的服务器端。

jQuery File Upload有多个文件选择，拖放上传控件拖放支持，进度条，验证和预览图像，音频和视频 。
]]></description><category></category></item><item><title><![CDATA[shell中的一些命令]]></title><link>https://blog.csdn.net/PythonYin/article/details/41866951</link><guid>https://blog.csdn.net/PythonYin/article/details/41866951</guid><author>PythonYin</author><pubDate>Thu, 11 Dec 2014 15:07:06 +0800</pubDate><description><![CDATA[shutdown -h now  关机
vim 打开某个文件
后台运行脚本：
进入脚本的目录下：
nohup python manage.py 脚本名 &
ps -ef |grep python 看后台有哪些本项目的任务在运行
mysql -h主机名 -u用户名 -p密码
use databaseName 使用某个数据库
telnet 主机名  端口号 看某台机器的某个端口是否能够]]></description><category></category></item><item><title><![CDATA[twisted  自定义服务器，sqlalchemy验证数据库]]></title><link>https://blog.csdn.net/PythonYin/article/details/41822099</link><guid>https://blog.csdn.net/PythonYin/article/details/41822099</guid><author>PythonYin</author><pubDate>Tue, 09 Dec 2014 11:57:51 +0800</pubDate><description><![CDATA[#coding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')


from twisted.web import server, resource, static
from twisted.internet import reactor
from twisted.web.resource import Reso]]></description><category></category></item><item><title><![CDATA[twisted 2]]></title><link>https://blog.csdn.net/PythonYin/article/details/41808575</link><guid>https://blog.csdn.net/PythonYin/article/details/41808575</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 20:34:09 +0800</pubDate><description><![CDATA[最近忙，发点旧文凑数-_-|||，这是三月份试用Twisted时记的一点笔记）

Twisted是一个功能极为强大的异步网络应用开发库——当然是Python的。印象中大概也就只有ACE有这么强悍，但Twisted在易用性方面要好很多——这其中当然少不了Python的功劳（ACE是用C++的）。

但Python也有其缺点，其中之一就是因为GIL的存在使得用Python写多线程应用的意义不大]]></description><category></category></item><item><title><![CDATA[Twisted Web服务器开发]]></title><link>https://blog.csdn.net/PythonYin/article/details/41808217</link><guid>https://blog.csdn.net/PythonYin/article/details/41808217</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 20:14:52 +0800</pubDate><description><![CDATA[静态：

from twisted.web import server, resource
from twisted.internet import reactor
class SimpleChild(resource.Resource):
    isLeaf=True
    def render_GET(self,request):
return "Hello, child"]]></description><category></category></item><item><title><![CDATA[urllib 传参]]></title><link>https://blog.csdn.net/PythonYin/article/details/41806733</link><guid>https://blog.csdn.net/PythonYin/article/details/41806733</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 18:35:37 +0800</pubDate><description><![CDATA[import urllib
import urllib2


url = 'http://www.someserver.com/cgi-bin/register.cgi'
values = {'name' : 'Michael Foord',
          'location' :'Northampton',
          'language' :'Python' }]]></description><category></category></item><item><title><![CDATA[python 正则]]></title><link>https://blog.csdn.net/PythonYin/article/details/41806451</link><guid>https://blog.csdn.net/PythonYin/article/details/41806451</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 18:00:46 +0800</pubDate><description><![CDATA[一、 正则表达式基础
1.1.概念介绍


正则表达式是用于处理字符串的强大工具，它并不是Python的一部分。

其他编程语言中也有正则表达式的概念，区别只在于不同的编程语言实现支持的语法数量不同。


它拥有自己独特的语法以及一个独立的处理引擎，在提供了正则表达式的语言里，正则表达式的语法都是一样的。

下图展示了使用正则表达式进行匹配的流程：



正则表达式的]]></description><category></category></item><item><title><![CDATA[python 模拟登录i]]></title><link>https://blog.csdn.net/PythonYin/article/details/41805819</link><guid>https://blog.csdn.net/PythonYin/article/details/41805819</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 17:09:28 +0800</pubDate><description><![CDATA[# -*- coding: utf-8 -*-  
  
  
import urllib    
import urllib2  
import cookielib  
  
cookie = cookielib.CookieJar()    
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))]]></description><category></category></item><item><title><![CDATA[爬虫 爬内容存到txt中]]></title><link>https://blog.csdn.net/PythonYin/article/details/41805681</link><guid>https://blog.csdn.net/PythonYin/article/details/41805681</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 17:00:39 +0800</pubDate><description><![CDATA[# -*- coding: utf-8 -*-  
#---------------------------------------  
#   程序：百度贴吧爬虫  
#   版本：0.5  
#   作者：why  
#   日期：2013-05-16  
#   语言：Python 2.7  
#   操作：输入网址后自动只看楼主并保存到本地文件  
#   功能：将楼主发布]]></description><category></category></item><item><title><![CDATA[字典列表 统计重复字典的数量]]></title><link>https://blog.csdn.net/PythonYin/article/details/41801749</link><guid>https://blog.csdn.net/PythonYin/article/details/41801749</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 11:49:53 +0800</pubDate><description><![CDATA[L=[ {'code': 200,  'name': u'tv.xxx', 'time': '16:29:02'},
{'code': 200,  'name': u'tv.xxx', 'time': '16:29:02'},
{'code': 302,  'name': u'news.xxx', 'time': '16:29:03'},
{'code': 200,  'name': u'n]]></description><category></category></item><item><title><![CDATA[Twisted实现web服务器]]></title><link>https://blog.csdn.net/PythonYin/article/details/41801501</link><guid>https://blog.csdn.net/PythonYin/article/details/41801501</guid><author>PythonYin</author><pubDate>Mon, 08 Dec 2014 11:33:57 +0800</pubDate><description><![CDATA[新建htm文件夹,在这个文件夹中放入显示的网页文件，在htm文件夹的同级目录下,建立web.py,web.py的内容为:

from twisted.web.resource import Resource
from twisted.web import server
from twisted.web import static
from twisted.internet import ]]></description><category></category></item><item><title><![CDATA[Twisted]]></title><link>https://blog.csdn.net/PythonYin/article/details/41774489</link><guid>https://blog.csdn.net/PythonYin/article/details/41774489</guid><author>PythonYin</author><pubDate>Sat, 06 Dec 2014 11:55:50 +0800</pubDate><description><![CDATA[http://f.dataguru.cn/forum.php?mod=viewthread&tid=373703


http://www.aosabook.org/en/twisted.html

http://www.douban.com/group/topic/54585481/

http://my.oschina.net/flashsword/blog/197963]]></description><category></category></item></channel></rss>