<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[prefertea的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/prefertea</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; prefertea]]></copyright><item><title><![CDATA[ubuntu安装dropbox的时候ImportError: libGL.so.1: cannot open shared object file: No such file or directory]]></title><link>https://blog.csdn.net/prefertea/article/details/107517781</link><guid>https://blog.csdn.net/prefertea/article/details/107517781</guid><author>prefertea</author><pubDate>Wed, 22 Jul 2020 17:01:22 +0800</pubDate><description><![CDATA[ImportError: libGL.so.1: cannot open shared object file: No such file or directory


解决办法：


$ sudo apt-get update
$ sudo apt-get install -y libgl1-mesa-dev


]]></description><category></category></item><item><title><![CDATA[Python pandas连接mysql数据库]]></title><link>https://blog.csdn.net/prefertea/article/details/106782272</link><guid>https://blog.csdn.net/prefertea/article/details/106782272</guid><author>prefertea</author><pubDate>Tue, 16 Jun 2020 10:37:36 +0800</pubDate><description><![CDATA[首先安装包

pip install pandas
pip install sqlalchemy
pip install pymysql

初始化数据库连接：


import pandas as pd
from sqlalchemy import create_engine

# 初始化数据库连接
# 按实际情况依次填写MySQL的用户名、密码、IP地址、端口、数据库名
engine = create_engine('mysql+pymysql://root:12345678@localhost:3306]]></description><category></category></item><item><title><![CDATA[pandas DataFrame简单数据分组方法实例]]></title><link>https://blog.csdn.net/prefertea/article/details/106709179</link><guid>https://blog.csdn.net/prefertea/article/details/106709179</guid><author>prefertea</author><pubDate>Fri, 12 Jun 2020 09:51:27 +0800</pubDate><description><![CDATA[import pandas as pd
df = pd.DataFrame({'性别' : ['男', '女', '男', '女',
        '男', '女', '男', '男'],
      '成绩' : ['优秀', '优秀', '及格', '差',
        '及格', '及格', '优秀', '差'],
      '年龄' : [15,14,15,12,13,14,15,16]})
print(df)


  性别  成绩  年龄
0  男  优秀  15
1  女  优秀  1.]]></description><category></category></item><item><title><![CDATA[Python3 pandas DataFrame自定义输出excel样式两个实例]]></title><link>https://blog.csdn.net/prefertea/article/details/106686428</link><guid>https://blog.csdn.net/prefertea/article/details/106686428</guid><author>prefertea</author><pubDate>Thu, 11 Jun 2020 13:15:03 +0800</pubDate><description><![CDATA[import pandas as pd
import random
import numpy as np
import os
 
 
#
# data = [10, 20, 30, 40, 50, 60]
# df = pd.DataFrame({'Heading': data,
#                    'Longer heading that should be wrapped' : data})
df = pd.DataFrame(np.arange(16).reshape(4,4).]]></description><category></category></item><item><title><![CDATA[lnmp mysql远程访问设置]]></title><link>https://blog.csdn.net/prefertea/article/details/106684289</link><guid>https://blog.csdn.net/prefertea/article/details/106684289</guid><author>prefertea</author><pubDate>Thu, 11 Jun 2020 11:11:26 +0800</pubDate><description><![CDATA[一：iptables 设置开放3306访问

iptables -L -n --line-numbers

1,删除DROP 3306

iptables -D INPUT 5

5是你查询到的序号





2,添加 ACCEPT 3306

iptables -A INPUT -p tcp --dport 3306 -j ACCEPT

iptables -I INPUT -p tcp --dport 3306 -j ACCEPT



保存，重启

service iptables save...]]></description><category></category></item><item><title><![CDATA[Python求一个集合的所有子集算法对比时间最短]]></title><link>https://blog.csdn.net/prefertea/article/details/105565639</link><guid>https://blog.csdn.net/prefertea/article/details/105565639</guid><author>prefertea</author><pubDate>Thu, 16 Apr 2020 19:57:33 +0800</pubDate><description><![CDATA[import datetime
def PowerSetsBinary(items):#1，二进制方法
    N = len(items)
    # generate all combination of N items
    # enumerate the 2**N possible combinations
    res=[]
    for i in range(2 ** N):
...]]></description><category></category></item><item><title><![CDATA[python pandas DataFrame数据的分割切片与合并操作]]></title><link>https://blog.csdn.net/prefertea/article/details/105483273</link><guid>https://blog.csdn.net/prefertea/article/details/105483273</guid><author>prefertea</author><pubDate>Mon, 13 Apr 2020 10:37:41 +0800</pubDate><description><![CDATA[不多说看代码：
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(5,4))
df1 = pd.DataFrame(np.random.randn(3,4))
df2 = pd.DataFrame(np.random.randn(3,4))
print(df)
print(df.iloc[0:3,:])...]]></description><category></category></item><item><title><![CDATA[python pandas groupby去重条件列并且求和原标数据都在没有删除的函数记录]]></title><link>https://blog.csdn.net/prefertea/article/details/105431423</link><guid>https://blog.csdn.net/prefertea/article/details/105431423</guid><author>prefertea</author><pubDate>Fri, 10 Apr 2020 13:22:52 +0800</pubDate><description><![CDATA[import pandas as pd
data = {"number":[1,1,np.nan,np.nan,2,2,1,2,2],
        "letter":['a','b',np.nan,np.nan,'c','d','b','c','d'],
        "label":[1,1,9,9,2,2,1,2,2],"label2":[33,12,9,9,2,2,1,2,2]}
d...]]></description><category></category></item><item><title><![CDATA[内网穿透，配置ngrok服务器]]></title><link>https://blog.csdn.net/prefertea/article/details/104835871</link><guid>https://blog.csdn.net/prefertea/article/details/104835871</guid><author>prefertea</author><pubDate>Fri, 13 Mar 2020 10:56:28 +0800</pubDate><description><![CDATA[1、配置域名解析，一般一个二级域名，一个三级域名，例如：2.a.cn(二级用作服务端) b.2.a.cn(三级域名用作真实访问地址)

2、开放服务器端口，默认 80（http访问）、443（https访问）、4443（4443是服务端口）

3、安装git 和Golang


yum install build-essential golang mercurial git


Golang，...]]></description><category></category></item><item><title><![CDATA[vue2_axios.post.跨域请求数据问题解决]]></title><link>https://blog.csdn.net/prefertea/article/details/104774659</link><guid>https://blog.csdn.net/prefertea/article/details/104774659</guid><author>prefertea</author><pubDate>Tue, 10 Mar 2020 14:56:20 +0800</pubDate><description><![CDATA[config/index.js
里面设置下proxyTable

dev: {
    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {
		'/': {
		target: 'http://*****.pare.cn/', // 需要跨域请求的地址或者IP
		chan...]]></description><category></category></item><item><title><![CDATA[github上传下载文件的方法记录]]></title><link>https://blog.csdn.net/prefertea/article/details/104016065</link><guid>https://blog.csdn.net/prefertea/article/details/104016065</guid><author>prefertea</author><pubDate>Fri, 17 Jan 2020 11:05:52 +0800</pubDate><description><![CDATA[1、https://github.com/ --&gt;Pricing and Signup --&gt;Create a free account
2、生成公钥：私钥
ssh-keygen -t rsa -C xxxxx@qq.com（注册github时的email）
3、登陆github，选择Account Settings--&gt;SSH Keys 添加ssh Key：打开你生成的id_...]]></description><category></category></item><item><title><![CDATA[vue环境安装.txt]]></title><link>https://blog.csdn.net/prefertea/article/details/104012810</link><guid>https://blog.csdn.net/prefertea/article/details/104012810</guid><author>prefertea</author><pubDate>Fri, 17 Jan 2020 00:14:16 +0800</pubDate><description><![CDATA[1、安装 https://nodejs.org/
node --version
：：：：linux安装：：：：：：
将安装包上传到指定位置(我习惯放到：/usr/local/目录)，并解压
tar -xvf node-v10.6.0-linux-x64.tar.xz
重命名文件夹
mv node-v10.6.0-linux-x64 nodejs
通过建立软连接变为全局
ln -s /usr/loc...]]></description><category></category></item><item><title><![CDATA[DW特殊后缀名如vue vm less等文件在DW中高亮显示并且代码提示的解决方案]]></title><link>https://blog.csdn.net/prefertea/article/details/104012777</link><guid>https://blog.csdn.net/prefertea/article/details/104012777</guid><author>prefertea</author><pubDate>Fri, 17 Jan 2020 00:04:52 +0800</pubDate><description><![CDATA[对于用dw做网页出身的程序员
用dw做编辑器真的比那些乱七八糟的强得多
然而dw不能编辑除软件内置默认的 其他的文件类型
打开会提示错误,或者打开后没有高亮和代码提示
下面给大家带来解决方案,用dw写vue也是666的

1、找到DW 安装目录。
Adobe Dreamweaver CS5.5\configuration\DocumentTypes
中的，MMDocumentTypes.xml 这...]]></description><category></category></item><item><title><![CDATA[Invalid Host header 服务器域名访问出现的问题]]></title><link>https://blog.csdn.net/prefertea/article/details/103816687</link><guid>https://blog.csdn.net/prefertea/article/details/103816687</guid><author>prefertea</author><pubDate>Fri, 03 Jan 2020 10:53:19 +0800</pubDate><description><![CDATA[vue-cli搭建的环境，用nginx做代理服务器，访问时显示：Invalid Host header

经查是因为新版的webpack-dev-server出于安全考虑，默认检查hostname，如果hostname不是配置内的就不能访问。这样有2中方法，一种是设置跳过host检查，一种是直接host设置成你的地址。

1、关闭host检查

 可以在build目录下的webpack.de...]]></description><category></category></item><item><title><![CDATA[mysql开启慢日志]]></title><link>https://blog.csdn.net/prefertea/article/details/103804787</link><guid>https://blog.csdn.net/prefertea/article/details/103804787</guid><author>prefertea</author><pubDate>Thu, 02 Jan 2020 15:14:39 +0800</pubDate><description><![CDATA[连接mysql：

mysql -h localhost -u root -p


mysql&gt; show variables like 'slow_query%';
+---------------------+-----------------------------------+
| Variable_name       | Value                        ...]]></description><category></category></item><item><title><![CDATA[VUE项目打包后不能看到源代码安全配置]]></title><link>https://blog.csdn.net/prefertea/article/details/103489483</link><guid>https://blog.csdn.net/prefertea/article/details/103489483</guid><author>prefertea</author><pubDate>Wed, 11 Dec 2019 11:29:45 +0800</pubDate><description><![CDATA[vue项目可以封装在钉钉、微信里面，用浏览器打开，虽然看不到内容，但是可以查看源码，所有的页面源码都是可以看到的。

这个是不是很危险。


config/index.js 里，将productionSourceMap改成false

就相当于禁止生成一些map文件。

map文件的作用在于：项目打包后，代码都是经过压缩加密的，如果运行时报错，输出的错误信息无法准确得知是哪里的代码报错。有了map...]]></description><category></category></item><item><title><![CDATA[利用reduce方法优雅的处理不定长度的循环promise链式同步异步操作]]></title><link>https://blog.csdn.net/prefertea/article/details/103163520</link><guid>https://blog.csdn.net/prefertea/article/details/103163520</guid><author>prefertea</author><pubDate>Wed, 20 Nov 2019 15:12:17 +0800</pubDate><description><![CDATA[// 利用reduce同步处理promise




const p = function(num) {
 	return new Promise((resolve, reject) =&gt; {
 	setTimeout(() =&gt; {
 	resolve(num)
 	}, 2000)
 	})
 	

};

    // list: [1, 2, 3, 4,....,'end']...]]></description><category></category></item><item><title><![CDATA[linux没有什么没法使用ll指令]]></title><link>https://blog.csdn.net/prefertea/article/details/103066877</link><guid>https://blog.csdn.net/prefertea/article/details/103066877</guid><author>prefertea</author><pubDate>Thu, 14 Nov 2019 14:33:12 +0800</pubDate><description><![CDATA[vi .bashrc

alias ll那一行的#去掉

然后执行

source.bashrc
]]></description><category></category></item><item><title><![CDATA[ubuntu更新和清理]]></title><link>https://blog.csdn.net/prefertea/article/details/103065426</link><guid>https://blog.csdn.net/prefertea/article/details/103065426</guid><author>prefertea</author><pubDate>Thu, 14 Nov 2019 12:54:47 +0800</pubDate><description><![CDATA[apt update
apt upgrade
apt clean
apt autoclean
apt autoremove
]]></description><category></category></item><item><title><![CDATA[Browser cdn方式引入qs库使用]]></title><link>https://blog.csdn.net/prefertea/article/details/102578289</link><guid>https://blog.csdn.net/prefertea/article/details/102578289</guid><author>prefertea</author><pubDate>Wed, 16 Oct 2019 02:07:42 +0800</pubDate><description><![CDATA[&lt;script src="https://cdn.bootcss.com/qs/6.7.0/qs.min.js"&gt;&lt;/script&gt;

  &lt;script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"&gt;&lt;/script&gt;

&lt;html&gt;
    &lt;body&gt;
...]]></description><category></category></item></channel></rss>