<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[su_2018的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/su_2018</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; su_2018]]></copyright><item><title><![CDATA[[Python] Python 编写自动邮件发送报错：smtplib.SMTPAuthenticationError: (535, b'no such user') 解决办法]]></title><link>https://blog.csdn.net/su_2018/article/details/103769259</link><guid>https://blog.csdn.net/su_2018/article/details/103769259</guid><author>su_2018</author><pubDate>Mon, 30 Dec 2019 17:08:26 +0800</pubDate><description><![CDATA[Python 编写自动邮件发送报错：smtplib.SMTPAuthenticationError: (535, b'no such user')

看到是535报错，检查了邮箱授权码，没毛病啊~

debug调试后找到原因，邮箱服务器地址我写成了


smtp_server = 'smtp.foxmail.com'   (重点！！！这是错误示例)

这里应该写成


smtp_server =...]]></description><category></category></item><item><title><![CDATA[[Python] Python 编写自动邮件发送报错：[Errno 13] Permission denied: 'C:/Users/lenovo/Desktop' 解决办法]]></title><link>https://blog.csdn.net/su_2018/article/details/103768335</link><guid>https://blog.csdn.net/su_2018/article/details/103768335</guid><author>su_2018</author><pubDate>Mon, 30 Dec 2019 16:34:15 +0800</pubDate><description><![CDATA[如下图，写自动发送邮件的程序时报错Permission denied: 'C:/Users/lenovo/Desktop' （权限被拒绝）



很明显，是粗心大意造成~

路径中需要把文件名写入，更改如下：


...]]></description><category></category></item><item><title><![CDATA[[Python] selenium 爬虫报错：Message: 'chromedriver' executable needs to be in PATH.解决办法]]></title><link>https://blog.csdn.net/su_2018/article/details/100127223</link><guid>https://blog.csdn.net/su_2018/article/details/100127223</guid><author>su_2018</author><pubDate>Wed, 28 Aug 2019 21:55:44 +0800</pubDate><description><![CDATA[selenium 爬虫时报错：Message: 'chromedriver' executable needs to be in PATH.Please see https://sites.google.com/a/chromium.org/chromedriver/home。

报错原因：没有配置chrome浏览器的chromedriver

解决办法：

1.确定自己所用chrome的版本

...]]></description><category></category></item><item><title><![CDATA[[EXCEL] 用excel做动态仪表盘,so easy~]]></title><link>https://blog.csdn.net/su_2018/article/details/99683566</link><guid>https://blog.csdn.net/su_2018/article/details/99683566</guid><author>su_2018</author><pubDate>Fri, 16 Aug 2019 20:13:12 +0800</pubDate><description><![CDATA[最近excel用的比较多，就分享一个动态仪表盘的制作方法吧~

    仪表盘制作其实准备两部分就好啦，一个是半环形表盘，一个是指针~

    这里以将仪表盘五等分为例制作~

表盘制作：

1.用以下表盘数据制作一个环形图，将环形图的第一扇区起始角度设置为270°
 将180数据改为无填充，半环图的雏形就有啦~在把图例标题去掉~



2.设置图标边框为无填...]]></description><category></category></item><item><title><![CDATA[[SQL Server] 用'SQL Server身份验证'登录时报错：用户登录失败 Error:18456 解决办法]]></title><link>https://blog.csdn.net/su_2018/article/details/91982300</link><guid>https://blog.csdn.net/su_2018/article/details/91982300</guid><author>su_2018</author><pubDate>Fri, 14 Jun 2019 16:11:27 +0800</pubDate><description><![CDATA[以上问题的处理办法如下图解：





如上图，找到你要登录的用户名，右键→属性


















]]></description><category></category></item><item><title><![CDATA[[MySQL] MySQL 面试题集锦（1）]]></title><link>https://blog.csdn.net/su_2018/article/details/90271871</link><guid>https://blog.csdn.net/su_2018/article/details/90271871</guid><author>su_2018</author><pubDate>Thu, 16 May 2019 21:32:30 +0800</pubDate><description><![CDATA[近期在复习MySQL,收集了一些面试题做了一下，如果有语句写的不妥当的地方，欢迎各位同学指正~
    万分之感恩感恩~~~~

目录

题1：​

题2：​

题3：​

查询3.1：

查询3.2：

查询3.3：

查询3.4：

题1：


# 建表
mysql&gt; create table test1(
    -&gt; id int(11) primary...]]></description><category></category></item><item><title><![CDATA[[JAVA] Java 中的选择结构（if、if-else、if-else if-else、switch-case）]]></title><link>https://blog.csdn.net/su_2018/article/details/89784682</link><guid>https://blog.csdn.net/su_2018/article/details/89784682</guid><author>su_2018</author><pubDate>Tue, 07 May 2019 21:07:38 +0800</pubDate><description><![CDATA[目录

1.单分支结构

-----1.1基本的if选择结构

-----1.2 多条件if选择结构

2.双分支结构

3.多分支结构

-----3.1多重if选择结构

-----3.2switch选择结构

4.嵌套条件结构



程序化设计的基本结构 有程序结构、选择结构和循环结构三种。

其各自的流程图如下：



选择结构通过判断某些特定条件是否满足来决定下一步的执行流...]]></description><category></category></item><item><title><![CDATA[[EXCEL]    宏的录制、调用和删除]]></title><link>https://blog.csdn.net/su_2018/article/details/89461101</link><guid>https://blog.csdn.net/su_2018/article/details/89461101</guid><author>su_2018</author><pubDate>Tue, 23 Apr 2019 18:09:18 +0800</pubDate><description><![CDATA[目录



什么是宏？

如何使用“宏”？

1.添加“开发工具”选项卡

2.录制宏

1）将选中的单元格停留在A1位置

2）点击“录制宏”，设置宏名和执行操作的快捷键

3）点击“使用相对引用”（此时“录制宏” 已经变成“停止录制”）

4）录制操作

5）一组操作录制完成后点击“停止录制”，结束录制宏

3.使用宏

删除宏

什么是宏？

简单讲，如果你需要Excel重复完成某项工作...]]></description><category></category></item><item><title><![CDATA[[Python] scrapy + selenium 抓取51job 职位信息（实现 传参 控制抓取  页数+职位名称+城市）]]></title><link>https://blog.csdn.net/su_2018/article/details/89219215</link><guid>https://blog.csdn.net/su_2018/article/details/89219215</guid><author>su_2018</author><pubDate>Sun, 21 Apr 2019 20:01:43 +0800</pubDate><description><![CDATA[目录



一、目标

二、51job网页分析：

1.网页构成观察

2.网页分析

三、代码实现

1. 踩过的坑-----实现城市选择

2.代码实现

3.代码优化

1）存放格式优化

2）在爬虫中去掉\xa0\xa0

3）用normalize-space(节点)去掉\r\n\t

4.pipelines.py 定义存储

一、目标

实现 通过传参(职位和地区）控制抓取51...]]></description><category></category></item><item><title><![CDATA[[Tools] 分享几个实用的 jupyter notebook 扩展功能]]></title><link>https://blog.csdn.net/su_2018/article/details/89378015</link><guid>https://blog.csdn.net/su_2018/article/details/89378015</guid><author>su_2018</author><pubDate>Sun, 21 Apr 2019 14:48:24 +0800</pubDate><description><![CDATA[目录

一、快速安装：

二、功能推荐：

1.代码导航功能

2.变量检查器

3.显示单元格运行的时间和长度

4.折叠/放下标题

5.折叠代码

6.隐藏代码

7.代码自动补全

8.通知

9.隐藏活动状态栏

10.tqdm_notebook为循环代码显示执行进度条

一、快速安装：

命令板中运行：

pip install jupyter_contrib_nbextensio...]]></description><category></category></item><item><title><![CDATA[[Python] python + selenium 抓取 京东商品数据（商品名称，售价，店铺，分类，订单信息，好评率，评论等）]]></title><link>https://blog.csdn.net/su_2018/article/details/88900468</link><guid>https://blog.csdn.net/su_2018/article/details/88900468</guid><author>su_2018</author><pubDate>Fri, 29 Mar 2019 21:17:12 +0800</pubDate><description><![CDATA[目录

一、环境

二、简介

三、京东网页分析

1.获取商品信息入口--商品列表链接获取

2.获取商品信息入口--商品详情链接获取

3.商品详情获取

4.商品评论获取

四、代码实现

五、运行结果

六、结语

一、环境

   win10 + python 3.7 + pycharm64 + selenium

二、简介

   抓取京东商品页面信息：商品名称，...]]></description><category></category></item><item><title><![CDATA[[Python]selenium 爬虫报错：Message: stale element reference: element is not attached to the page document]]></title><link>https://blog.csdn.net/su_2018/article/details/88780839</link><guid>https://blog.csdn.net/su_2018/article/details/88780839</guid><author>su_2018</author><pubDate>Sun, 24 Mar 2019 20:03:23 +0800</pubDate><description><![CDATA[selenium 爬虫时报错：

Message: stale element reference: element is not attached to the page document

过时的元素引用：元素未附加到页面文档

错误原因：代码执行了click（），但是没有完成翻页，又爬了一次当前页，再执行翻页时页面已刷新，无法找到前面的翻页执行click()

解决方法：click() 后设...]]></description><category></category></item><item><title><![CDATA[[Python] scrapy 爬虫报错: Connection to the other side was lost in a non-clean fashion: Connection lost.]]></title><link>https://blog.csdn.net/su_2018/article/details/88714727</link><guid>https://blog.csdn.net/su_2018/article/details/88714727</guid><author>su_2018</author><pubDate>Thu, 21 Mar 2019 14:36:08 +0800</pubDate><description><![CDATA[scrapy 爬虫时报错：
&lt;twisted.python.failure.Failure twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.&gt;

&lt;twisted.python.failure.f...]]></description><category></category></item><item><title><![CDATA[[Python] Python爬虫 抓取51job职位信息存储到excel和mysql 的代码编写及首次优化始末]]></title><link>https://blog.csdn.net/su_2018/article/details/88646311</link><guid>https://blog.csdn.net/su_2018/article/details/88646311</guid><author>su_2018</author><pubDate>Tue, 19 Mar 2019 21:03:06 +0800</pubDate><description><![CDATA[目录

需求：

初版：

初版代码review:

优化：

首次优化后代码：

需求：

    编写函数，可以指明抓取某职位以及页数实现抓不同职位时（用正则和request），存到同一个excel中的不同sheet中,并将数据存到mysql中

初版：

    以下是第一次编写代码时的思路




#编写正则
def getjobname(jobname,startnum,...]]></description><category></category></item><item><title><![CDATA[[Python] Python 函数]]></title><link>https://blog.csdn.net/su_2018/article/details/88380498</link><guid>https://blog.csdn.net/su_2018/article/details/88380498</guid><author>su_2018</author><pubDate>Sun, 10 Mar 2019 17:05:57 +0800</pubDate><description><![CDATA[目录

Python 函数定义和调用

如何定义函数

函数结构

函数调用

Python 参数传递

Python 参数类型

必备参数

关键字参数

默认参数

不定长参数

Python函数返回值

Python 变量作用域

Python匿名函数

    lambda 函数

    filter函数

    map函数

    reduc...]]></description><category></category></item><item><title><![CDATA[[Python] For循环遍历容器]]></title><link>https://blog.csdn.net/su_2018/article/details/88380355</link><guid>https://blog.csdn.net/su_2018/article/details/88380355</guid><author>su_2018</author><pubDate>Sun, 10 Mar 2019 16:44:54 +0800</pubDate><description><![CDATA[目录

使用range通过for循环遍历列表

使用range通过for循环遍历元组

使用zip通过for循环遍历列表

通过for循环遍历字典

循环列表时利用enumerate获取索引

使用range通过for循环遍历列表

列表的遍历可以直接使用for循环，也可以借助 range() 函数。它可创建一个整数列表，一般用在 for 循环中。

range语法：range(start,sto...]]></description><category></category></item><item><title><![CDATA[[Python] 输出*直角三角形的五种写法]]></title><link>https://blog.csdn.net/su_2018/article/details/88380172</link><guid>https://blog.csdn.net/su_2018/article/details/88380172</guid><author>su_2018</author><pubDate>Sun, 10 Mar 2019 16:41:22 +0800</pubDate><description><![CDATA[#输出星号*组成的直角三角形，方法1
for x in range(5):
    print()
    for y in range(x+1):
        print("*",end=" ")


#输出星号*组成的直角三角形，方法2
x=0
while x&lt;5:
    print()
    x+=1
    y=0
    while y&lt;x:
        pri...]]></description><category></category></item><item><title><![CDATA[[Python] 小明又迟到了……一个故事讲清楚 Python 循环嵌套]]></title><link>https://blog.csdn.net/su_2018/article/details/88379243</link><guid>https://blog.csdn.net/su_2018/article/details/88379243</guid><author>su_2018</author><pubDate>Sun, 10 Mar 2019 16:20:01 +0800</pubDate><description><![CDATA[Python 语言允许在一个循环体里面嵌入另一个循环。循环嵌套的语法形式如下：

1、Python for 循环嵌套：

语法：


for iteration_var in sequence:
    for iteration_var in sequence:
        statements(s)
    statements(s)

2、Python while 循环嵌套：

语法：
...]]></description><category></category></item><item><title><![CDATA[[Python] Python 绘制美队盾牌（含五星两种画法）]]></title><link>https://blog.csdn.net/su_2018/article/details/88356432</link><guid>https://blog.csdn.net/su_2018/article/details/88356432</guid><author>su_2018</author><pubDate>Fri, 08 Mar 2019 18:25:47 +0800</pubDate><description><![CDATA[用Python 绘制美队的盾牌，代码附上：


import turtle as t
t.speed(0)
t.penup()
t.goto(0,-200)
t.pendown()
t.pensize(1)
t.pencolor("red")
t.fillcolor("red")
t.begin_fill()
t.circle(200,360)
t.end_fill()
t.penup()
t.g...]]></description><category></category></item><item><title><![CDATA[[Python] Python 画一幅节日贺卡送给小姐姐们,祝女神节快乐~]]></title><link>https://blog.csdn.net/su_2018/article/details/88351847</link><guid>https://blog.csdn.net/su_2018/article/details/88351847</guid><author>su_2018</author><pubDate>Fri, 08 Mar 2019 15:26:01 +0800</pubDate><description><![CDATA[3.8女神节来临之际，一时兴起，画了一幅py贺卡，用视频软件处理了下加了背景音乐、滤镜和字幕，朋友很惊喜~感慨了下：为啥那些男程序猿就没有这样的觉悟(朋友的男票是程序猿）

    这里奉上代码给小伙伴们，可以稍作修改给身边人送个小小惊喜哦~

    （玫瑰花的代码copy自https://blog.csdn.net/qq_40390825/articl...]]></description><category></category></item></channel></rss>