<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[into_the_new_world的博客]]></title><description><![CDATA[Python的学习之路]]></description><link>https://blog.youkuaiyun.com/into_the_new_world</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; into_the_new_world]]></copyright><item><title><![CDATA[安装RedisDump遇到的问题（centos）]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/82662358</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/82662358</guid><author>into_the_new_world</author><pubDate>Wed, 12 Sep 2018 15:30:10 +0800</pubDate><description><![CDATA[RedisDump是一个用于Redis数据导入/导出的工具，是基于Ruby实现的，所以要安装RedisDump，需要先安装Ruby。

yum（CentOS、Fedora 或 RHEL） 
CentOS、Fedora 和 RHEL 使用 yum 包管理器。用法如下：


  $ sudo yum install ruby


但是在安装成功后使用：


  gem install redis-du...]]></description><category></category></item><item><title><![CDATA[偏函数]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80820869</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80820869</guid><author>into_the_new_world</author><pubDate>Tue, 26 Jun 2018 21:00:25 +0800</pubDate><description><![CDATA[什么是偏函数， 我们来看一个例子：



# int函数
a = int(&quot;1010&quot;, base=10)
&quot;&quot;&quot;
在int函数中有个默认的关键字base=10, 表示以10进制的方式计算将传入的字符串数字， 并返回10进制的数
此时:print(a)
执行结果:
1010
如果我们把base=10, 改成base=2， 表示以2进制的方式计算传入的字符串数字， 并返回10进制的数
a = int...]]></description><category></category></item><item><title><![CDATA[装饰器浅解析(带参数的函数)2]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80807727</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80807727</guid><author>into_the_new_world</author><pubDate>Mon, 25 Jun 2018 21:30:36 +0800</pubDate><description><![CDATA[如果我们的函数带有参数如何来装饰：



def person(age):
    print(&amp;quot;xl is %s years old!&amp;quot; % (age))
# 我们定义一个函数person
# 调用函数person
person(18)
# 执行结果:
xl is 18 years old!

# 如果：
person(-10)
# 执行结果：
xl is -10 years old!
# 没有...]]></description><category></category></item><item><title><![CDATA[装饰器浅解析]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80807382</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80807382</guid><author>into_the_new_world</author><pubDate>Mon, 25 Jun 2018 20:58:49 +0800</pubDate><description><![CDATA[装饰器：就是一个闭包， 一个函数当做参数返回一个替代版的函数 
本质上就是一个返回函数的函数

一个简单的装饰器：



def func1():
    print(&quot;sunck is good man&quot;)

# 给func1函数加入一个新的功能， 在打印(sunck is a good man)之前先打印一串*号

# 第一种方法:直接在原函数前面加上一个打印的函数
# def func1()...]]></description><category></category></item><item><title><![CDATA[numpy库中的函数2：]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80671116</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80671116</guid><author>into_the_new_world</author><pubDate>Wed, 13 Jun 2018 20:55:29 +0800</pubDate><description><![CDATA[import numpy as np
import matplotlib.pyplot as plt

arange()函数将值倒过来 
只需将arange()函数的步长设为负数即可：

np.arange(start=150,stop=0,step=-1)



np.arange(150,0,step=-1)
out:
    array([150, 149, 148, 147, 146, 1...]]></description><category></category></item><item><title><![CDATA[numpy库中的函数1：]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80670563</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80670563</guid><author>into_the_new_world</author><pubDate>Tue, 12 Jun 2018 20:46:15 +0800</pubDate><description><![CDATA[现从一张图片上去认识numpy

首先导入numpy 和 matplotlib.pylot

import numpy as np
# matplotlib画图的，也可以读取图片
import matplotlib.pyplot as plt

这里给一张cat.jpg的图片 


# 图片，音频都叫流（数据流）
# 用matplotlib中的pylot模块中的函数imread()读取图片
# 如...]]></description><category></category></item><item><title><![CDATA[jupyter notebook 的快捷键]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80669806</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80669806</guid><author>into_the_new_world</author><pubDate>Tue, 12 Jun 2018 19:13:33 +0800</pubDate><description><![CDATA[1 Jupyter Notebook 的快捷键

Jupyter Notebook 有两种键盘输入模式。编辑模式，允许你往单元中键入代码或文本；这时的单元框线是绿色的。命令模式，键盘输入运行程序命令；这时的单元框线是灰色。



1.1 命令模式 (按键 Esc 开启)


Enter : 转入编辑模式
Shift-Enter : 运行本单元，选中下个单元
Ctrl-Enter : 运行本单元
A...]]></description><category></category></item><item><title><![CDATA[flask-day03]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80374699</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80374699</guid><author>into_the_new_world</author><pubDate>Sat, 19 May 2018 15:26:24 +0800</pubDate><description><![CDATA[SQLAlchemy是一个常用的数据库抽象层和对象关系映射器，我们这里通过SQLAlchemy来访问mysql数据库和创建模型(models)



1、链接数据库和数据库查询

首先，我们需要安装SQLAlchemy可以通过


  pip install Flask-SQLAlchemy


链接mysql数据库还需安装pymysql来驱动。


  pip install pymysql

...]]></description><category></category></item><item><title><![CDATA[flask-day02]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80372989</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80372989</guid><author>into_the_new_world</author><pubDate>Sat, 19 May 2018 14:15:35 +0800</pubDate><description><![CDATA[1、链接非关系型数据库redis

app/init.py 
在app/init.py中配置链接redis数据库

import os

from flask import Flask
from flask_session import Session
import redis

from App.views import blue


def create_app():

    BASE_DI...]]></description><category></category></item><item><title><![CDATA[flask-day01]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80372636</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80372636</guid><author>into_the_new_world</author><pubDate>Sat, 19 May 2018 11:14:15 +0800</pubDate><description><![CDATA[前段时间在学习Django，之后上周跟着老师做了一个项目，然后就没有怎么更新博客，这周在学习flask，然后就把本周的学习的内容大致总结一下。

1、什么是flask

Flask是基于Werkzeug，Jinja 2和良好意图的基于Python的微框架。


  Django和flask都是基于Python的web框架 
  但是Django是一个集成的比较完善的一个web框架，你能想到的基本上...]]></description><category></category></item><item><title><![CDATA[学习之路中遇到的英语单词(1)]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80200406</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80200406</guid><author>into_the_new_world</author><pubDate>Fri, 04 May 2018 21:12:00 +0800</pubDate><description><![CDATA[这两周在学习django框架，感觉学得真心有点累，也能感觉到东西不多，因为不理解，所以很难过，虽然跟着老师把功能实现了，但是确实记不住啊。特别是在遇到导入一些模块的东西，英语单词又臭又长而而且还各种点，真心烦，英语是硬伤啊。


  from rest_framework.renderers import JSONRenderer 
  from django.core.paginator imp...]]></description><category></category></item><item><title><![CDATA[Django+登录验证+中间件]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80185503</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80185503</guid><author>into_the_new_world</author><pubDate>Thu, 03 May 2018 19:56:55 +0800</pubDate><description><![CDATA[对于django的学习不是特别的深刻，有很多不足之处还望包涵，废话不多说，现在来说说Django的登录验证。 
例如：登录验证是指我们要访问某个学校的学生信息的话，我们要登录学生信息的管理系统之后才能访问学生的信息。如果你没有登录的话，你的request请求直接请求学生的信息的url的话，不会访问到学生的信息，会直接跳到登录界面，要求你登录才能访问。 
实现登录验证我们有两种方式：


  第一种...]]></description><category></category></item><item><title><![CDATA[初始Cookies]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80171892</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80171892</guid><author>into_the_new_world</author><pubDate>Wed, 02 May 2018 21:00:30 +0800</pubDate><description><![CDATA[内容来自百度百科 
cookie(储存在用户本地终端上的数据）


  Cookie，有时也用其复数形式 Cookies，指某些网站为了辨别用户身份、进行 session 跟踪而储存在用户本地终端上的数据（通常经过加密）。定义于 RFC2109 和 2965 中的都已废弃，最新取代的规范是 RFC6265   。（可以叫做浏览器缓存） 
  1、Cookie 可以翻译为“小甜品，小饼干” ，Coo...]]></description><category></category></item><item><title><![CDATA[介绍Django管理页面]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80098785</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80098785</guid><author>into_the_new_world</author><pubDate>Thu, 26 Apr 2018 19:54:41 +0800</pubDate><description><![CDATA[
  设计哲学 
  为你的员工或客户生成一个用户添加，修改和删除内容的后台是一项缺乏创造性和乏味的工作。因此，Django全自动地根据模型创建后台界面。 
  管理界面不是为了网站的访问者，而是为了管理者准备的。




创建一个管理员账号

首先，我们的创建一个能登录管理页面的用户。请运行下面的命令：


  命令：python manage.py createsuperuser


键入你想...]]></description><category></category></item><item><title><![CDATA[Django]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80086306</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80086306</guid><author>into_the_new_world</author><pubDate>Wed, 25 Apr 2018 21:43:21 +0800</pubDate><description><![CDATA[今天也确实布置到写什么，今天学习了django的模块但是我完全是蒙的，不知道如何下手，感觉还是要写点有实际意义的东西吧，终于知道如何和数据库建立练习，就来简单的写下如何和数据库建立练习吧！


  1、在新建的HelloWorld项目里HelloWorld的目录下有init.py和setting.py 
   
  2、在init.py文件里import pymysql然后在如图pymysql.i...]]></description><category></category></item><item><title><![CDATA[初始Django]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80070195</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80070195</guid><author>into_the_new_world</author><pubDate>Tue, 24 Apr 2018 20:34:02 +0800</pubDate><description><![CDATA[学了两天的Django感觉完全是蒙的，不知道要干什么，特别是老师在讲django采用了MVC的软件设计模式时，对于非计算机的我来说本来理解就很困难，难得的是老师没有讲的太清楚，然后这两天完全坐飞机。真的不知道博客该写些什么，不管3721照着runoob抄一下吧，以下内容从runoob抄录下来的：


  1、Django是一个开放源代码的Web应用框架，由Python写成。 
  Django采用...]]></description><category></category></item><item><title><![CDATA[创建原生的python的virtualenv]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80055433</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80055433</guid><author>into_the_new_world</author><pubDate>Mon, 23 Apr 2018 20:02:34 +0800</pubDate><description><![CDATA[对于任何的版本我们如果要创建python的虚拟环境的话，我们需要通过pip（包管理工具）来安装virtualenv这个模块命令如下：


  pip install virtualenv 
  使用virtualenv命令创建虚拟环境 
   
   进入你需要创建python解释器的虚拟环境目录下输入命令： 
   virtualenv –no-site-packages py3 
    
 ...]]></description><category></category></item><item><title><![CDATA[Git命令的简易指南操作]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80023204</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80023204</guid><author>into_the_new_world</author><pubDate>Fri, 20 Apr 2018 19:47:21 +0800</pubDate><description><![CDATA[这里如何安装Git就不说了，只是简单的克隆一个远端的仓库到本地以创建一个你本地的仓库，然后对在本地仓库进行操作，然后修改后的文件push到远端上去；


  第一步：如果我们要自己创建一个本地仓库的话，就在你需要工作的盘建一个工作文件夹然后在该文件夹下面启动Git Bash Here，可以看到前面的路径就在你自己的工作盘路径下，如果你不是在工作路径下启动的话可以通过系统的命令切换到该路径 
   ...]]></description><category></category></item><item><title><![CDATA[模拟输入用户名密码与redis数据库和mysql数据库进行比对]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/80011827</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/80011827</guid><author>into_the_new_world</author><pubDate>Thu, 19 Apr 2018 22:09:57 +0800</pubDate><description><![CDATA[今天讲了一个模拟登陆界面输入用户名和密码。老师讲的很模糊，而且听得不太明白，我的理解链接redis数据库和数据库存储的用户名和密码进行比对，如果匹配成功则登陆成功，如果没有该用户就到mysql数据库，如果能找到该用户并且密码正确然后登陆成功，然后又把该用户名和密码写到redis数据库中。



# python中链接redis和mysql数据库分别需要模块redis和pymysql模块
impor...]]></description><category></category></item><item><title><![CDATA[Linux 系统下源文件安装Python3.6.5]]></title><link>https://blog.youkuaiyun.com/into_the_new_world/article/details/79998692</link><guid>https://blog.youkuaiyun.com/into_the_new_world/article/details/79998692</guid><author>into_the_new_world</author><pubDate>Wed, 18 Apr 2018 23:25:36 +0800</pubDate><description><![CDATA[因为Linux系统下自带了python2的版本，所以我们要用Python3的话需要自己构建安装，下面是通过源文件编译安装；


  1.通过python的官网找到Linux系统下的python3的源文件链接 
   
  我们通过点到源文件上面然后鼠标右键-复制链接地址，图片中两个的都是Linux的源文件的压缩文件只是压缩的方式不同，后面的解压方式就不同 
  第一步：通过wget + 源文件的链...]]></description><category></category></item></channel></rss>