<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mclegend的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/mclegend</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mclegend]]></copyright><item><title><![CDATA[Django跨域配置]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/81540016</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/81540016</guid><author>mclegend</author><pubDate>Thu, 09 Aug 2018 16:54:06 +0800</pubDate><description><![CDATA[Django跨域配置

1.安装django-cors-headers

pip install django-cors-headers

2.配置settings.py文件

添加应用

INSTALLED_APPS = [
    'corsheaders',
]


添加中间件

MIDDLEWARE = [
    'corsheaders.middleware.CorsMiddlewar...]]></description><category></category></item><item><title><![CDATA[使用centos部署django项目]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/81539958</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/81539958</guid><author>mclegend</author><pubDate>Thu, 09 Aug 2018 16:52:32 +0800</pubDate><description><![CDATA[使用centos部署django项目

安装MariaDB

安装命令

yum -y install mariadb mariadb-server


安装完成MariaDB，首先启动MariaDB

systemctl start mariadb


设置开机启动

systemctl enable mariadb


设置密码

命令: mysql_secure_installation

...]]></description><category></category></item><item><title><![CDATA[Python装饰器详解]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/81539928</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/81539928</guid><author>mclegend</author><pubDate>Thu, 09 Aug 2018 16:51:40 +0800</pubDate><description><![CDATA[Python装饰器作用：

用于拓展原来函数功能的一种函数，这个函数的特殊之处在于它的返回值也是一个函数，使用python装饰器的好处就是在不用更改原函数的代码前提下给函数增加新的功能。 

装饰器结构：

函数+实参高阶函数+返回值高阶函数+嵌套函数+语法糖 = 装饰器 

def fn(func): #函数
    def fna(*args): #实参高阶函数
        # 这里可以嵌...]]></description><category></category></item><item><title><![CDATA[Python基础篇（二）：print()函数、input()函数、条件语句if]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/80738313</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/80738313</guid><author>mclegend</author><pubDate>Tue, 19 Jun 2018 20:21:33 +0800</pubDate><description><![CDATA[为了方便理解，以后的用法教程大多都是直接在python代码中展示，教程内容就是注释，可以直接复制代码在自己的编辑软件中运行看执行结果，自己多敲几遍理解更容易，看得多不如敲得多1.print()函数print()函数是输出打印的意思。'''
1.直接打印数值
'''
print(123)
print(&quot;abc&quot;)
print(True)

'''
2.直接打印变量
'''
name=&quot;mclegen...]]></description><category></category></item><item><title><![CDATA[Python基础篇（一）：注释、进制、数据类型、变量、运算]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/80729822</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/80729822</guid><author>mclegend</author><pubDate>Tue, 19 Jun 2018 19:39:39 +0800</pubDate><description><![CDATA[1.注释:]]></description><category></category></item><item><title><![CDATA[Hbuilder封装APP教程]]></title><link>https://blog.youkuaiyun.com/mclegend/article/details/80724129</link><guid>https://blog.youkuaiyun.com/mclegend/article/details/80724129</guid><author>mclegend</author><pubDate>Mon, 18 Jun 2018 15:21:32 +0800</pubDate><description><![CDATA[Hbuilder官网：http://www.dcloud.io/

步骤：

 

1.下载安装好Hbuilder软件，然后打开，选择文件》新建》移动app。2.然后填写应用名称等基本信息，注意这里模板选择空模板即可。3.在左侧项目管理器找到刚才创建的项目，（这里说明一下，css、img、js文件是自动生成的空文件夹，不用管。我们这里需要修改的是index.html和manifest.json）。...]]></description><category></category></item></channel></rss>