<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[anshang4901的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/anshang4901</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; anshang4901]]></copyright><item><title><![CDATA[python 几个循环的效率测试]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412135</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412135</guid><author>anshang4901</author><pubDate>Fri, 30 Nov 2018 14:53:00 +0800</pubDate><description><![CDATA[前言：对于我这种追求极致的人来说，效率很重要。
前面看到网上关于python循环的测评，到自己在项目中的应用，发现，并不是这么回事。所以，写下次博文，一次性了解这个问题。
语言版本：python3.6
平台：mac10.12.6
IDE：pycharm community 2018.2
关于循环的介绍：
1. for循环
　　我们最开始使用的循环。for循环的对象是可迭代对...]]></description><category></category></item><item><title><![CDATA[永别了，Dota2！]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412137</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412137</guid><author>anshang4901</author><pubDate>Wed, 01 Nov 2017 17:02:00 +0800</pubDate><description><![CDATA[永别了，Dota2 。输了游戏，我还有人生！
游戏中，总有那些喷子，自己玩的不好，经常说人家！

和大便打架，即使赢了，身上也非常臭！
所以对于这种人，敬而远之即可！不吵不闹，默默把锅扛起！赢了，就好说！

我要把所有的精力放到人生这个巨大的游戏中！
社会关系，家庭建设，祖国建设！

加油！
永别了，dota2！

转载于:https://www.cnblogs...]]></description><category></category></item><item><title><![CDATA[Python 实现 Discuz论坛附件下载权限绕过漏洞]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412134</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412134</guid><author>anshang4901</author><pubDate>Sat, 01 Jul 2017 00:09:00 +0800</pubDate><description><![CDATA[背景：最近压力有些大，想玩点游戏放松下，去Mac论坛下载，发现需要各种权限，于是蛋疼了。
所以，上网查了discuz! x3.1破解，手动替换，发现出现“链接已过期”。所以写了下面程序。
0.将下列代码复制到你的python IDE中。
1.先进网页，chrome浏览器查看网页元素，替换正则表达式内内容。
2.刷新你要下载的页面，右键复制下载链接 url = ‘你复制...]]></description><category></category></item><item><title><![CDATA[现在的状态，是你以前所有行为积累的结果]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412132</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412132</guid><author>anshang4901</author><pubDate>Tue, 07 Mar 2017 11:22:00 +0800</pubDate><description><![CDATA[所以，现在在不好的状态下，积极的去改变吧！

比如早上不想起床，醒了想继续睡觉！这是之前积累的结果。直接起来，过一会儿，疲惫感就消失了。
写代码没有运动，睡觉没注意保暖，结果起来头晕，按照以前的习惯是继续在家。认为不知何游泳。结果，游泳后，反而觉得舒服多了！这个很明显的例子!

要让自己的身体为自己服务，而不要让自己成为身体的奴隶！加油，骚年！

转载于:https://w...]]></description><category></category></item><item><title><![CDATA[二 解析网页中元素]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412133</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412133</guid><author>anshang4901</author><pubDate>Mon, 06 Mar 2017 23:15:00 +0800</pubDate><description><![CDATA[一 使用beautifulSoup 解析网页
Soup = BeantifulSoup(html,'lxml')
二 描述需要爬取的东西在哪？
 = Soup.select('???')
三 从标签中获得你要的信息
 &lt;p&gt;Something&lt;/p&gt; 去掉标签，并放到数据容器中。
title.get_text() &gt; Something
...]]></description><category></category></item><item><title><![CDATA[一 认识网页的构成]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412131</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412131</guid><author>anshang4901</author><pubDate>Mon, 06 Mar 2017 07:41:00 +0800</pubDate><description><![CDATA[自己写爬虫很久了，刚刚又学一门新课，所以决定还是过一下基础知识。
网页中
浏览器负责翻译网页的内容。
html 负责结构
css负责美观
javasript负责功能
div嵌套，div中加入其他内容，各种标签。css负责美观，li列表，a 负责链接，img图片
header，content，footer
标签能嵌套，元素有层级
head标签中的信息，给浏览器看的，不会显...]]></description><category></category></item><item><title><![CDATA[python 如何跳过异常继续执行]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412129</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412129</guid><author>anshang4901</author><pubDate>Fri, 24 Feb 2017 13:31:00 +0800</pubDate><description><![CDATA[使用try...except...语句，类似于if...else...，可以跳过异常继续执行程序，这是Python的优势
用法如下：




1
2
3
4
5
6



try:#可能会出现异常的一段代码
command_1#如果command_1出现异常，则不执行command_1以及之后的语句
co...]]></description><category></category></item><item><title><![CDATA[Python 笔记]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412130</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412130</guid><author>anshang4901</author><pubDate>Fri, 24 Feb 2017 07:54:00 +0800</pubDate><description><![CDATA[python group() 用法
python 学习笔记 10 -- 正则表达式
Python正则表达式中的 compile,search,group,groups 函数的简单说明
Python 之 【re模块的正则表达式学习】

转载于:https://www.cnblogs.com/cbds/p/6436743.html...]]></description><category></category></item><item><title><![CDATA[Python爬虫爬取qq视频等动态网页全代码]]></title><link>https://blog.youkuaiyun.com/anshang4901/article/details/101412128</link><guid>https://blog.youkuaiyun.com/anshang4901/article/details/101412128</guid><author>anshang4901</author><pubDate>Wed, 22 Feb 2017 08:15:00 +0800</pubDate><description><![CDATA[环境：py3.4.4 32位
需要插件：seleniumBeautifulSoupxlwt
# coding = utf-8
from selenium import webdriverfrom bs4 import BeautifulSoupimport timeimport re #re模块提供正则表达式支持import xlwt
url = 'http://v.qq.c...]]></description><category></category></item></channel></rss>