11 2013 档案

摘要:1.首先安装python, 我安装了Python2.7的版本,安装在了D:\Python25\2.接着安装django,我下载了django 1.6的版本。3. 安装完了之后,打开cmd,然后可以检验是否安装的顺利,输入python;接着输入import django;接着输入django.get_version()或者django.VERSION4. 记住,安装前一定要把以前的版本删除掉:If you are upgrading your installation of Django from a previous version, you will need to uninstall th 阅读全文
posted @ 2013-11-14 23:01 Tinan 阅读(1092) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8-*-import re##过滤HTML中的标签#将HTML中标签等信息去掉#@param htmlstr HTML字符串.def filter_tags(htmlstr):#先过滤CDATA re_cdata=re.compile('//]*//\]\]>',re.I) #匹配CDATA re_script=re.compile(']*>[^',re.I)#Script re_style=re.compile(']*>[^',re.I)#style re_br=re.compile( 阅读全文
posted @ 2013-11-12 16:57 Tinan 阅读(1399) 评论(0) 推荐(0)