<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[yangczcsdn的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/yangczcsdn</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; yangczcsdn]]></copyright><item><title><![CDATA[python后端接收前端回传的文件]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81781116</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81781116</guid><author>yangczcsdn</author><pubDate>Fri, 17 Aug 2018 17:35:41 +0800</pubDate><description><![CDATA[filename=None

    if request.method == 'POST' and request.FILES.get('file'):

        from django.core.files.storage import FileSystemStorage

        myfile = request.FILES['file']

        fs = Fil...]]></description><category></category></item><item><title><![CDATA[python使用base64和md5加密]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81781027</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81781027</guid><author>yangczcsdn</author><pubDate>Fri, 17 Aug 2018 17:32:02 +0800</pubDate><description><![CDATA[code=b'123456'

encode_secret = base64.b64encode(code)#base64加密

md5s=hashlib.md5()#md5加密算法

md5s.update(encode_secret)

codes=md5s.hexdigest()

codesBig=codes.upper()]]></description><category></category></item><item><title><![CDATA[linux 静默安装Oracle [SEVERE] - Email Address Not Specified错误处理]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81701531</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81701531</guid><author>yangczcsdn</author><pubDate>Wed, 15 Aug 2018 11:42:27 +0800</pubDate><description><![CDATA[安装报错：[SEVERE] - Email Address Not Specified

原因：在配置db_install.rsp文件时，缺少配置，（如下配置，红色配置为缺少的配置，添加后即可）

 

oracle.install.option=INSTALL_DB_SWONLY

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/ora...]]></description><category></category></item><item><title><![CDATA[centOS7安装nginx]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81562209</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81562209</guid><author>yangczcsdn</author><pubDate>Fri, 10 Aug 2018 14:07:42 +0800</pubDate><description><![CDATA[1.进入所要安装的目录

wget http://nginx.org/download/nginx-1.13.7.tar.gz

2.下载完成后，执行解压命令

tar -zxvf nginx-1.13.7.tar.gz

3.进入解压后的文件，执行一下命令

./configure

make

make install...]]></description><category></category></item><item><title><![CDATA[linux部署django项目]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81560657</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81560657</guid><author>yangczcsdn</author><pubDate>Fri, 10 Aug 2018 13:53:12 +0800</pubDate><description><![CDATA[一、系统要求

centOS7系统，python3.5以上版本，django 1.10.3以上版本，uwsgi 2.0.15以上版本，nginx 1.13.7 以上版本

python3 的安装参考：https://blog.csdn.net/yangczcsdn/article/details/81363662

django，uwsgi 使用 pip安装即可

nginx 的安装参考：http...]]></description><category></category></item><item><title><![CDATA[centOS7下安装Redis]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81391425</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81391425</guid><author>yangczcsdn</author><pubDate>Fri, 03 Aug 2018 17:58:28 +0800</pubDate><description><![CDATA[第一步：下载Redis安装包（直接在linux系统中下载）

wget http://download.redis.io/releases/redis-4.0.6.tar.gz

第二步：加压下载的压缩包

tar -zxvf redis-4.0.6.tar.gz

第三步：安装依赖包（如果有则不需要）

yum install gcc

第四步：将解压的Redis压缩包移动到  /usr/loc...]]></description><category></category></item><item><title><![CDATA[centos7下安装python3.x 使用django连接mysql进行项目开发]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81363662</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81363662</guid><author>yangczcsdn</author><pubDate>Thu, 02 Aug 2018 17:30:08 +0800</pubDate><description><![CDATA[第一步：首先确保在Linux系统下安装好python3.x（建议3.5以上），并且安装好mysql数据库（建议5.7.2以上），django使用pip进行安装即可。python3、mysql、pip的安装这里不再讲解。（python3和pip安装请参考：https://blog.csdn.net/yangczcsdn/article/details/80843739）

第二步：首先创建一个目录，...]]></description><category></category></item><item><title><![CDATA[flask 链接mongodb]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81327289</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81327289</guid><author>yangczcsdn</author><pubDate>Wed, 01 Aug 2018 11:13:49 +0800</pubDate><description><![CDATA[import pymongo
db=pymongo.MongoClient('localhost',27017).test
 ]]></description><category></category></item><item><title><![CDATA[python 哈希加密算法的使用]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81327091</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81327091</guid><author>yangczcsdn</author><pubDate>Wed, 01 Aug 2018 11:05:37 +0800</pubDate><description><![CDATA[import hmac
import hashlib
import base64

def hmac_sha1(strContent):
    h=hmac.new(skey.encode(),strContent.encode(),hashlib.sha1)
    return base64.b64encode(h.digest())

def hmac_sha256(strContent)...]]></description><category></category></item><item><title><![CDATA[python常见面试题集]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81326612</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81326612</guid><author>yangczcsdn</author><pubDate>Wed, 01 Aug 2018 10:52:38 +0800</pubDate><description><![CDATA[1、MySQL 数据库总结
MySQL 可以建多少个数据库，理论上是没有限制的，每一个数据库可以有上亿的对象，但是一般基于硬件要求、效率问题一般不超过64个，
超过64个会对数据处理速度造成影响，每一张表建议不超过过1亿条数据。
2、Python 话题
1.最受欢迎的Python开源框架   1：Django  2：Twisted 3：Tornado    除了以上三种常用的开源框架外 还有 ：
...]]></description><category></category></item><item><title><![CDATA[linux系统，开启和关闭防火墙的方法]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81324788</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81324788</guid><author>yangczcsdn</author><pubDate>Wed, 01 Aug 2018 09:41:35 +0800</pubDate><description><![CDATA[方法一：（使用此命令前，必须先安装 iptables 包） 安装方法： yum install  iptables-services

service iptables stop关闭防火墙
service iptables start/restart开启或重启

方法二：（一般通用）

查看防火墙状态
firewall -cmd    --state
关闭防火墙
systemctl  stop  ...]]></description><category></category></item><item><title><![CDATA[python常用知识点的总结]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81302081</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81302081</guid><author>yangczcsdn</author><pubDate>Tue, 31 Jul 2018 13:53:42 +0800</pubDate><description><![CDATA[1.获取当前时间（年月日   时 分 秒）
nowtime=datetime.now()
2.在当前时间点上，往后推迟多长时间（天）
invalid_time=nowtime+timedelta(days=任意天数)
3.生成当前时间戳
time_stamp=time.time()
将datatime类型字符串转化为日期格式
4.通过某一个标志将字符串截取数个片段放入数组 并通过下标获取想要的字符...]]></description><category></category></item><item><title><![CDATA[tornado中传递参数的几种方式]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81301999</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81301999</guid><author>yangczcsdn</author><pubDate>Tue, 31 Jul 2018 13:47:22 +0800</pubDate><description><![CDATA[方法一 ：tornado路由可以使用正则表达式中的子表达式传递url参数。比如：
(r&quot;/member//(\w*)/([01]*)&quot;, MemberHandler)
匹配以后，tornado会将字符串（）中匹配到的内容，作为参数传递到MemberHandler中去，因此我们在MemberHandler中定义get方法时增加参数：

class MemberHandler(tornado.web....]]></description><category></category></item><item><title><![CDATA[python 判断手机号是否正确]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81296393</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81296393</guid><author>yangczcsdn</author><pubDate>Tue, 31 Jul 2018 09:40:18 +0800</pubDate><description><![CDATA[import re
def judge_Monile_phone(phone):
    phone='14737373737'
    if len(phone)==11:
        rp=re.compile('^0\d{2,3}\d{7,8}$|^1[358]\d{9}$|^147\d{8}')
        phoneMatch = rp.match(phone)
        ...]]></description><category></category></item><item><title><![CDATA[python3 安装 Scrapy模块]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/81295939</link><guid>https://blog.csdn.net/yangczcsdn/article/details/81295939</guid><author>yangczcsdn</author><pubDate>Tue, 31 Jul 2018 09:26:07 +0800</pubDate><description><![CDATA[特此说明，直接pip install scrapy  会报错，安装不成功，缺少如下环境。

1.首先在CMD窗口查看所安装的python的版本和位数。

2.打开网址： https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载scrapy 所依赖的Twisted模块环境（Twisted也是python的一个比较流行的web开发模块），下载如下图。...]]></description><category></category></item><item><title><![CDATA[linux centOS7 安装python3 及 pip3 的安装使用（简单明了）]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/80843739</link><guid>https://blog.csdn.net/yangczcsdn/article/details/80843739</guid><author>yangczcsdn</author><pubDate>Thu, 28 Jun 2018 15:19:34 +0800</pubDate><description><![CDATA[linux : centos 7

一：安装python3.5

#安装gcc，否则在./configure时会erroryum install gcc#安装openssl-devel，否则会忽略pip安装失败，但是没有erroryum install openssl-devel#安装python3wget https://www.python.org/ftp/python/3.5.3/Pytho...]]></description><category></category></item><item><title><![CDATA[linux修改主机IP]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/80811101</link><guid>https://blog.csdn.net/yangczcsdn/article/details/80811101</guid><author>yangczcsdn</author><pubDate>Tue, 26 Jun 2018 10:05:57 +0800</pubDate><description><![CDATA[
	第一步：进入网络配置文件目录

	首先，确保在root用户下进行操作。进入网络配置文件network-scripts目录下。

	
	
	
	第二步：找到我们需要修改的配置文件

	使用ls命令，列出该目录下的文件。其中“ifcfg-ens33”（红框）的文件，为我们需要修改的网络配置文件。

	
	
	
	第三步：修改配置文件

	使用vim命令（vi命令也可以）,对文件进行配置，我们需要修...]]></description><category></category></item><item><title><![CDATA[python使用第三方模块实现给注册用户发送验证码]]></title><link>https://blog.csdn.net/yangczcsdn/article/details/80307868</link><guid>https://blog.csdn.net/yangczcsdn/article/details/80307868</guid><author>yangczcsdn</author><pubDate>Mon, 14 May 2018 12:03:28 +0800</pubDate><description><![CDATA[互亿通信网址  http://user.ihuyi.com/nav/sms.html （打开本网址进行注册）import http.client  #（注意python3中没有httplib模块 使用 http.client模块）import urllibhost = &quot;106.ihuyi.com&quot;  #(无需改动)sms_send_uri = &quot;/webservice/sms.php?metho...]]></description><category></category></item></channel></rss>