<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wpf973的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_43212169</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_43212169]]></copyright><item><title><![CDATA[M1安装homebrew]]></title><link>https://blog.csdn.net/qq_43212169/article/details/114261758</link><guid>https://blog.csdn.net/qq_43212169/article/details/114261758</guid><author>qq_43212169</author><pubDate>Mon, 01 Mar 2021 14:14:16 +0800</pubDate><description><![CDATA[/bin/zsh -c “$(curl -fsSL https://gitee.com/feraljas/HomebrewCN/raw/master/Homebrew.sh)”

一个大神搭建好之后可以直接下载的资源

]]></description><category></category></item><item><title><![CDATA[Mac安装homebrew总是报错unable to access ‘https://github.com/Homebrew/brew/‘]]></title><link>https://blog.csdn.net/qq_43212169/article/details/114254969</link><guid>https://blog.csdn.net/qq_43212169/article/details/114254969</guid><author>qq_43212169</author><pubDate>Mon, 01 Mar 2021 10:19:37 +0800</pubDate><description><![CDATA[fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
Failed during: git fetch --force origin


安装homebrew总是报错
解决方案

git config --global --unset http.proxy 
git config --global]]></description><category></category></item><item><title><![CDATA[python FileResponse下载中文文件名， 无法下载的问题]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107289779</link><guid>https://blog.csdn.net/qq_43212169/article/details/107289779</guid><author>qq_43212169</author><pubDate>Sat, 11 Jul 2020 19:51:59 +0800</pubDate><description><![CDATA[写python下载excel文档时，使用的python的 FileResponse，filename是中文时，正常使用英文发现没有问题，文件可以正常下载，但是使用中文名称命名文件时，无法生成文件后缀
response['Content-Disposition'] = 'attachment;filename=测试.xls'

修改代码如下，即可正常下载中文文件，
response['Content-Disposition'] = 'attachment;filename={}'.format(escape_]]></description><category></category></item><item><title><![CDATA[iframe标签 -实现页面跳转url不变的效果(明面上这么理解)]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107238553</link><guid>https://blog.csdn.net/qq_43212169/article/details/107238553</guid><author>qq_43212169</author><pubDate>Thu, 09 Jul 2020 21:52:29 +0800</pubDate><description><![CDATA[定义和用法
iframe - HTML标签，作用是创建包含另外一个文档的内联框架（即行内框架）。
iframe 元素也就是文档中的文档，或者浮动的框架(FRAME)。frames 集合提供了对 iframe 内容的访问。使用 frames 集合可以读写 iframe 内包含的元素。
基本介绍
iframe 元素也就是文档中的文档，或者好像浮动的框架(FRAME)。frames 集合提供了对 iframe 内容的访问。请使用 frames 集合读写 iframe 内包含的元素。例如，如果要访问 iframe ]]></description><category></category></item><item><title><![CDATA[Django中两个不同的应用中的数据表之间关联起来]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107238480</link><guid>https://blog.csdn.net/qq_43212169/article/details/107238480</guid><author>qq_43212169</author><pubDate>Thu, 09 Jul 2020 21:45:01 +0800</pubDate><description><![CDATA[假设在项目中有app01和app02两个应用，两个应用的models.py文件中分别有User和Book两个类，要将app02中Book类的author字段设置外键，与app01中的User类关联起来，方法如下：
1、首先在app02的models.py文件中引入User，如下：
from app01.models import User

2、设置外键字段为：
author = models.ForeignKey(to=User,on_delete=models.CASCADE)

这其中需要注意的是，U]]></description><category></category></item><item><title><![CDATA[Django2.0整合markdown编辑器并实现代码高亮（解决在前端显示的换行问题）]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107225081</link><guid>https://blog.csdn.net/qq_43212169/article/details/107225081</guid><author>qq_43212169</author><pubDate>Thu, 09 Jul 2020 11:43:45 +0800</pubDate><description><![CDATA[跳转至链接：成功解决此问题的博客

]]></description><category></category></item><item><title><![CDATA[jquery怎么刷新页面]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107145809</link><guid>https://blog.csdn.net/qq_43212169/article/details/107145809</guid><author>qq_43212169</author><pubDate>Sun, 05 Jul 2020 21:57:25 +0800</pubDate><description><![CDATA[1、window.location.reload()刷新当前页面


2、parent.location.reload()刷新父亲对象（用于框架）


3、opener.location.reload()刷新父窗口对象（用于单开窗口）


4、top.location.reload()刷新最顶端对象（用于多开窗口）



...]]></description><category></category></item><item><title><![CDATA[Django获取get请求里面的参数]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107116614</link><guid>https://blog.csdn.net/qq_43212169/article/details/107116614</guid><author>qq_43212169</author><pubDate>Fri, 03 Jul 2020 22:26:35 +0800</pubDate><description><![CDATA[当get网址是127.0.0.1:8000/index/?id=1这种类型的网址时,如何捕获参数？
通过request.GET获取请求携带的参数
def xxx(request):
    if request.method=='GET':
        id=request.GET.get('id')

即可拿到里面的参数值

]]></description><category></category></item><item><title><![CDATA[Django在模板中对变量做运算]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107116533</link><guid>https://blog.csdn.net/qq_43212169/article/details/107116533</guid><author>qq_43212169</author><pubDate>Fri, 03 Jul 2020 22:23:02 +0800</pubDate><description><![CDATA[在django中的模板下我们知道变量使用{{xxx}}来呈现，可是当出现两个变量进行运算怎么处理呢？
#加法：
{{value|add:value2}}
#返回的结果是value+value2的值，假设你value为40，value2为60 ，则该表达式
#返回结果为100

#减法
{{value|add -value2}}
#与加法的性质一样，只不过是把第二个参数变成负数进行运算，返回的结果是value-value2
#假如value=4,value2=8,则返回的结果是-4

#乘法
{% width]]></description><category></category></item><item><title><![CDATA[模型类关系]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107116418</link><guid>https://blog.csdn.net/qq_43212169/article/details/107116418</guid><author>qq_43212169</author><pubDate>Fri, 03 Jul 2020 22:15:35 +0800</pubDate><description><![CDATA[关系字段类型
关系型数据库的关系包括三种类型：

ForeignKey：一对多，将字段定义在多的一端中。
ManyToManyField：多对多，将字段定义在任意一端中。
OneToOneField：一对一，将字段定义在任意一端中。可以维护递归的关联关系，使用’self’指定，“自关联”

Django2.0，Python3.6x环境
on_delete=models.CASCADE的作用
主外关系键中，级联删除，也就是当删除主表的数据时候从表中的数据也随着一起删除

...]]></description><category></category></item><item><title><![CDATA[Django模型之Meta选项详解]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107116291</link><guid>https://blog.csdn.net/qq_43212169/article/details/107116291</guid><author>qq_43212169</author><pubDate>Fri, 03 Jul 2020 22:11:36 +0800</pubDate><description><![CDATA[Django模型类的Meta是一个内部类，它用于定义一些Django模型类的行为特性。而可用的选项大致包含以下几类
abstract
这个属性是定义当前的模型是不是一个抽象类。所谓抽象类是不会对应数据库表的。一般我们用它来归纳一些公共属性字段，然后继承它的子类可以继承这些字段。
Options.abstract
如果abstract = True 这个model就是一个抽象类
app_label
这个选型只在一种情况下使用，就是你的模型不在默认的应用程序包下的models.py文件中，这时候需要指定你这个模]]></description><category></category></item><item><title><![CDATA[解决报错 See config.log for more details 的问题]]></title><link>https://blog.csdn.net/qq_43212169/article/details/107047641</link><guid>https://blog.csdn.net/qq_43212169/article/details/107047641</guid><author>qq_43212169</author><pubDate>Tue, 30 Jun 2020 18:04:15 +0800</pubDate><description><![CDATA[今天centos使用./configure时报错
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
che]]></description><category></category></item><item><title><![CDATA[几种Python解释器]]></title><link>https://blog.csdn.net/qq_43212169/article/details/104851858</link><guid>https://blog.csdn.net/qq_43212169/article/details/104851858</guid><author>qq_43212169</author><pubDate>Fri, 13 Mar 2020 23:04:02 +0800</pubDate><description><![CDATA[当我们编写Python代码时，我们得到的是一个包含Python代码的以.py为扩展名的文本文件。要运行代码，就需要Python解释器去执行.py文件。
由于整个Python语言从规范到解释器都是开源的，所以理论上，只要水平够高，任何人都可以编写Python解释器来执行Python代码（当然难度很大）。事实上，确实存在多种Python解释器。
CPython
当我们从Python官方网站下载并安装好...]]></description><category></category></item><item><title><![CDATA[图库]]></title><link>https://blog.csdn.net/qq_43212169/article/details/104720121</link><guid>https://blog.csdn.net/qq_43212169/article/details/104720121</guid><author>qq_43212169</author><pubDate>Sat, 07 Mar 2020 19:20:38 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[解决 csv文件存入mysql报错：The MySQL server is running with the --secure-file-priv option so it cannot execut]]></title><link>https://blog.csdn.net/qq_43212169/article/details/103125869</link><guid>https://blog.csdn.net/qq_43212169/article/details/103125869</guid><author>qq_43212169</author><pubDate>Mon, 18 Nov 2019 17:20:55 +0800</pubDate><description><![CDATA[把文件系统的内容导入到mysql数据库中
语法

    load data infile "文件名"
    into table 表名
    fields terminated by "分隔符"
    lines terminated by "\n"


将桌面文件存储到mysql

The MySQL server is running with the --secure-file-p...]]></description><category></category></item><item><title><![CDATA[Python中几种常见的排序方法]]></title><link>https://blog.csdn.net/qq_43212169/article/details/103105689</link><guid>https://blog.csdn.net/qq_43212169/article/details/103105689</guid><author>qq_43212169</author><pubDate>Sun, 17 Nov 2019 14:33:21 +0800</pubDate><description><![CDATA[文章目录概念冒泡排序概念原理代码实践时间复杂度选择排序概念代码实践实践复杂度插入排序概念代码实践时间复杂度快速排序概念原理代码实践时间复杂度归并排序概念代码实践时间复杂度
概念
首先，我们要明白两个概念：
排序算法：是一种能将一串数据依照特定顺序进行排序的一种算法。
稳定性：稳定排序算法会让原本有相等键值的记录维持相对次序。也就是如果一个排序算法是稳定的，当有两个相等键值的记录R和S，并且在原本列...]]></description><category></category></item><item><title><![CDATA[pycharm切换不了中文输入法的解决方法]]></title><link>https://blog.csdn.net/qq_43212169/article/details/102808230</link><guid>https://blog.csdn.net/qq_43212169/article/details/102808230</guid><author>qq_43212169</author><pubDate>Tue, 29 Oct 2019 20:46:37 +0800</pubDate><description><![CDATA[1、点击【File】—【Setting】—【Editor】—【File Encoding】页面，设置global 和project encoding为UTF-8,然后点击应用。
2、点击【File】—【Setting】—【Editor】—【File and Code Templates】，点击右边的【python script】，在编辑框中输入： #--coding:utf-8-- ，保存设置之后...]]></description><category></category></item><item><title><![CDATA[matplotlib - 饼图、等高线图]]></title><link>https://blog.csdn.net/qq_43212169/article/details/102739247</link><guid>https://blog.csdn.net/qq_43212169/article/details/102739247</guid><author>qq_43212169</author><pubDate>Fri, 25 Oct 2019 12:02:02 +0800</pubDate><description><![CDATA[今天来学习一下画饼图和等高线图。
其实和之前我们画图的技巧是一样的，只是画饼图和画等高线图我们又用到了新的两种方法。
饼图：plt.pie()
等高线图：plt.contourf、plt.contour
首先来介绍饼图
语法：plt.pie(值,间隙,标签,颜色,格式,shadow=是否带阴影,startangel=其实角度)
其实很简单。
代码：
#导入模块
import numpy as np...]]></description><category></category></item><item><title><![CDATA[matplotlib -刻度网格线]]></title><link>https://blog.csdn.net/qq_43212169/article/details/102731675</link><guid>https://blog.csdn.net/qq_43212169/article/details/102731675</guid><author>qq_43212169</author><pubDate>Thu, 24 Oct 2019 20:45:52 +0800</pubDate><description><![CDATA[import numpy as np
from matplotlib import pyplot as plt

x = np.linspace(-5,5,1000)
y = 8 * np.sinc(x)

plt.figure('Grid',facecolor="lightgray")
plt.title("Grid",fontsize=20)
plt.xlabel("x",fontsize=1...]]></description><category></category></item><item><title><![CDATA[matplotlib - 刻度定位器]]></title><link>https://blog.csdn.net/qq_43212169/article/details/102684605</link><guid>https://blog.csdn.net/qq_43212169/article/details/102684605</guid><author>qq_43212169</author><pubDate>Tue, 22 Oct 2019 17:01:17 +0800</pubDate><description><![CDATA[今天补充个新的知识点：刻度定位器
我们之前有讲过xticks、yticks，那两个方法是设置坐标刻度，今天我们来讲刻度定位器
那么这两个之间有什么区别呢？
设置坐标刻度：关于xticks、yticks这两个方法，我们最基本的会提供一个位置序列，还有一个标签序列，等真正绘图的时候，会根据我们提供的位置，相对应的将标签安置到其坐标上。
刻度定位器：刻度定位器，分主刻度定位器 和 次刻度定位器，那么我们...]]></description><category></category></item></channel></rss>