<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ChaseRaod的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ChaseRaod</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ChaseRaod]]></copyright><item><title><![CDATA[shell的一些总结]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/116122168</link><guid>https://blog.csdn.net/ChaseRaod/article/details/116122168</guid><author>ChaseRaod</author><pubDate>Sun, 25 Apr 2021 23:38:07 +0800</pubDate><description><![CDATA[1、获取某个进程的进程号
举例：
进程名为"./main“，需要拿到此进程的pid
pid=$（ps -ef | grep "./main" | grep -v grep | awk '{print $2}')

2、获取某个关键字所在的行号
举例：
获取”data"在文件test.txt中的行号。
num_data=$(grep -n "data" test.txt | cut -d ":" -f 1)

3、替换文件中的某个关键词
举例：
将test.txt中的status:0换成status:1
se]]></description><category></category></item><item><title><![CDATA[python多线程threading]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/108212796</link><guid>https://blog.csdn.net/ChaseRaod/article/details/108212796</guid><author>ChaseRaod</author><pubDate>Mon, 31 Aug 2020 20:21:25 +0800</pubDate><description><![CDATA[threading模块包含以下类：
（1）Thread：基本线程类
（2）Lock：互斥锁
（3）RLock：可重入锁，使单一进程再次获得已持有的锁(递归锁)
（4）Condition：条件锁，使得一个线程等待另一个线程满足特定条件，比如改变状态或某个值。
（5）Semaphore：信号锁。为线程间共享的有限资源提供一个”计数器”，如果没有可用资源则会被阻塞。
（6）Event：事件锁，任意数量的线程等待某个事件的发生，在该事件发生后所有线程被激活
（7）Timer：一种计时器
（8）Barrier：Pyt]]></description><category></category></item><item><title><![CDATA[python正则表达式]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107907402</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107907402</guid><author>ChaseRaod</author><pubDate>Mon, 10 Aug 2020 11:41:14 +0800</pubDate><description><![CDATA[1，re.compile(pattern[, flags])
把正则表达式的模式和标识转化成正则表达式对象，供 match() 和 search() 这两个函数使用。
re 所定义的 flag 包括：

re.I 忽略大小写

re.L 表示特殊字符集 \w, \W, \b, \B, \s, \S 依赖于当前环境

re.M 多行模式

re.S 即为’ . ’并且包括换行符在内的任意字符（’ . ’不包括换行符）

re.U 表示特殊字符集 \w, \W, \b, \B, \d, \D, \s, \S 依]]></description><category></category></item><item><title><![CDATA[Markdown语法图文全面详解]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107905946</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107905946</guid><author>ChaseRaod</author><pubDate>Mon, 10 Aug 2020 10:04:55 +0800</pubDate><description><![CDATA[转自码个蛋公众号
目录



1. 快捷键
2. 基本语法
2.1 字体设置斜体、粗体、删除线
2.2 分级标题
2.3 链接
2.4 分割线
2.5 代码块
2...]]></description><category></category></item><item><title><![CDATA[Python的特征数据类型(列表、元祖、字典、集合)]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107682885</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107682885</guid><author>ChaseRaod</author><pubDate>Thu, 30 Jul 2020 10:00:05 +0800</pubDate><description><![CDATA[(一)、主要内容

1.1、列表
1.2、元祖
1.3、字典

1.4、集合






列表 、字典、元祖、集合



(二)、列表

2.1、Python 提供了列表数据类型来存储由多个值组成的序列。在列表中，只可以是任何类型，称为元素或项。Python 列表是有序的。任意的成员都可以通过下标来进行访问。话句话说，Python 对列表数据中的所有成员按序编号，称为索引，从而实现对成员变量的访问和修改。

2.2、列表的创建


用逗号分隔的不同的数据项使用方括号“[ ]”括起来即可创建列表。例如：
&g]]></description><category></category></item><item><title><![CDATA[Python中字典的key都可以是什么？]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107680889</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107680889</guid><author>ChaseRaod</author><pubDate>Thu, 30 Jul 2020 08:13:19 +0800</pubDate><description><![CDATA[&nbsp;答：一个对象能不能作为字典的key，就取决于其有没有__hash__方法。所以所有python自带类型中，除了list、dict、set和内部至少带有上述三种类型之一的tuple之外，其余的对象都能当key。
比如数值/字符串/完全不可变的元祖/函数(内建或自定义)/类(内建或自定义)/方法/包等等你能拿出手的，不过有的实际...]]></description><category></category></item><item><title><![CDATA[python中的map、filter、reduce函数]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107460779</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107460779</guid><author>ChaseRaod</author><pubDate>Mon, 20 Jul 2020 12:12:38 +0800</pubDate><description><![CDATA[三个函数比较类似，都是应用于序列的内置函数。常见的序列包括list、tuple、str。
map函数
map函数会根据提供的函数对指定序列做映射。
map函数的定义：map(function, sequence[, sequence, …]) -&gt; list
通过定义可以看到，这个函数的第一个参数是一个函数，剩下的参数是一个或多个序列，返回值是一个集合。
function可以理解为是一个一对一或多对一函数，map的作用是以参数序列中的每一个元素调用function函数，返回包含每次function函数]]></description><category></category></item><item><title><![CDATA[shell脚本中空格问题]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107460737</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107460737</guid><author>ChaseRaod</author><pubDate>Mon, 20 Jul 2020 12:09:02 +0800</pubDate><description><![CDATA[shell脚本对空格有严格的规定，赋值语句等号两边不能有空格，而字符串比较，等号两边必须有空格
赋值时： i=1
i=$((i+1))                   //    =用作赋值时，两边绝对不能有空格
比较时： if [ $a = $b ]     　　// =用作比较判断时，两边必须有空格
if:
if: if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]… [ else COMMANDS; ] fi
整数比较：if ]]></description><category></category></item><item><title><![CDATA[记一次工具开发中涉及到的python内容]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/107178248</link><guid>https://blog.csdn.net/ChaseRaod/article/details/107178248</guid><author>ChaseRaod</author><pubDate>Tue, 07 Jul 2020 12:46:42 +0800</pubDate><description><![CDATA[python中的requests库
1，安装
pip install requests

2，使用
import requests
url = "http://www.baidu.com"
res = requests.get(url)
print res
print res.status_code
print res.content
print res.text


res.content和res.text的结果看起来是相同的，那么他们的区别是什么？
r1 = res.content
r2 = res.t]]></description><category></category></item><item><title><![CDATA[python多线程编程]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/106948342</link><guid>https://blog.csdn.net/ChaseRaod/article/details/106948342</guid><author>ChaseRaod</author><pubDate>Wed, 24 Jun 2020 17:41:14 +0800</pubDate><description><![CDATA[1、多线程与多进程
从上面关于线程和进程的的通俗解释来看，多线程和多进程的含义如下：
多进程：允许多个任务同时进行
多线程：允许单个任务分成不同的部分运行
2、Python多线程编程
2.1 单线程
在好些年前的MS-DOS时代，操作系统处理问题都是单任务的，我想做听音乐和看电影两件事儿，那么一定要先排一下顺序。
from time import ctime,sleep

def music():
    for i in range(2):
        print "I was listening t]]></description><category></category></item><item><title><![CDATA[BaseHTTPServer模块解析]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/106919293</link><guid>https://blog.csdn.net/ChaseRaod/article/details/106919293</guid><author>ChaseRaod</author><pubDate>Tue, 23 Jun 2020 14:16:08 +0800</pubDate><description><![CDATA[转载自：https://blog.csdn.net/xhw88398569/article/details/49179967
#coding=utf-8
'''
Created on 2015-7-20
@author: xhw
@explain: 实现GET方法和POST方法请求
'''
from  BaseHTTPServer import HTTPServer,BaseHTTPRequestHandler
import urllib
 
class ServerHTTP(BaseHTTPRequest]]></description><category></category></item><item><title><![CDATA[ARC环境下iOS内存管理总结]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/104596166</link><guid>https://blog.csdn.net/ChaseRaod/article/details/104596166</guid><author>ChaseRaod</author><pubDate>Sun, 01 Mar 2020 17:37:08 +0800</pubDate><description><![CDATA[自动引用计数，又称ARC（Automatic Reference Counting）是苹果在iOS5中引入的重要特性，它减少了我们在内存管理时的麻烦，让我们可以把更多的精力放在其它更重要的事情上。
虽然ARC给我们带来了很多方便，但如果开发者不了解基本的内存管理知识，还是会在开发工作中遇到很多问题。所以，我总结了ARC环境下应该知道的内存管理知识，供诸位参考。
基于引用计数的内存管理
要了解ARC...]]></description><category></category></item><item><title><![CDATA[DSP、ADX、SSP、DMP之间的关系]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/104417007</link><guid>https://blog.csdn.net/ChaseRaod/article/details/104417007</guid><author>ChaseRaod</author><pubDate>Thu, 20 Feb 2020 20:05:48 +0800</pubDate><description><![CDATA[DSP、ADX、SSP、DMP之间的关系
在线广告的演化进程催生出程序化购买的概念，即把从广告主到媒体的全部投放过程程序化，通常需要一个程序化平台去购买广告展示。
程序化购买主要分“公开竞价”、“私有市场”两类交易方式，
DSP-需求方平台，也就是广告主服务平台，广告主可以通过DSP平台设置自己想要的受众目标以及愿意出多少钱购买这些受众的曝光等操作完成广告投放，面向广告购买方。
SSP-供应方平台...]]></description><category></category></item><item><title><![CDATA[合约广告]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/104416848</link><guid>https://blog.csdn.net/ChaseRaod/article/details/104416848</guid><author>ChaseRaod</author><pubDate>Thu, 20 Feb 2020 20:01:08 +0800</pubDate><description><![CDATA[互联网广告业务的初始阶段，拥有流量的媒体与需要广告资源的代理商是市场的主要参与者。线下广告的商业逻辑也被照搬到了线上，由广告代理公司和媒体签订协议，确保某些广告位在某时间段为指定的广告商所占有，同时广告商按整体合同支付广告费用。这种按CPT结算的广告位合约方式对技术的依赖性较小，只需要用到简单的广告排期系统。
合约式广告的重点是按CPM计费的展示量合约广告。这种方式仍然以合同的方式确定一次广告活动...]]></description><category></category></item><item><title><![CDATA[Object C基础]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/104349239</link><guid>https://blog.csdn.net/ChaseRaod/article/details/104349239</guid><author>ChaseRaod</author><pubDate>Sun, 16 Feb 2020 21:27:32 +0800</pubDate><description><![CDATA[最近开始接触ios开发，需要学习下object C，此文记录学习内容。

]]></description><category></category></item><item><title><![CDATA[广告业务常用名词整理]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/103753238</link><guid>https://blog.csdn.net/ChaseRaod/article/details/103753238</guid><author>ChaseRaod</author><pubDate>Sun, 29 Dec 2019 16:20:44 +0800</pubDate><description><![CDATA[初次接触广告相关业务可能对很多名词不理解，入职广告部门近半年的时间，整理下广告系统常见名词。
1，腾讯联盟广告：广点通联盟广告指广告主投放于开发者所运营的自有移动应用内的广告。广点通联盟的广告均由广告主在腾讯方提供的广告投放系统内自行决定投放广告的内容、位置、投放价格、大小等。广点通联盟为移动媒体提供专业、高品质的流量变现服务。系统已覆盖Android（一种基于linux的自由及开放源代码的操作系...]]></description><category></category></item><item><title><![CDATA[linux下压缩解压缩命令]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/81240977</link><guid>https://blog.csdn.net/ChaseRaod/article/details/81240977</guid><author>ChaseRaod</author><pubDate>Fri, 27 Jul 2018 17:14:22 +0800</pubDate><description><![CDATA[ 
                     
                linux下解压命令大全

.tar  
解包：tar xvf FileName.tar 
打包：tar cvf FileName.tar DirName 
（注：tar是打包，不是压缩！） 
——————————————— 
.gz 
解压1：gunzip FileName.gz 
解压2：gzip -d FileN...]]></description><category></category></item><item><title><![CDATA[windows下MongoDB的安装及配置]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/81217941</link><guid>https://blog.csdn.net/ChaseRaod/article/details/81217941</guid><author>ChaseRaod</author><pubDate>Thu, 26 Jul 2018 12:20:50 +0800</pubDate><description><![CDATA[ 
         
                     
                         
                一、先登录Mongodb官网https://www.mongodb.com/download-center#community 下载 &amp;nbsp;&amp;nbsp;安装包。32、64位的都行。二、安装MongoDB下载后的安装包：安装比较简单，类似于普通...]]></description><category></category></item><item><title><![CDATA[文档解析利器lxml]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/80615857</link><guid>https://blog.csdn.net/ChaseRaod/article/details/80615857</guid><author>ChaseRaod</author><pubDate>Thu, 07 Jun 2018 21:58:05 +0800</pubDate><description><![CDATA[
                    
                引言:

lxml是基于xpath语法的,也就是说如果你掌握了xpath语法,那么对于你学习其他工具解析文档都是很容易的事。比如前面我们介绍的Scrapy框架就是采用xpath语法进行文档解析。废话不多说，直入主题。

一.lxml安装步骤

1.安装python(这里就不具体阐述了,见我之前文章)

2.使用easy_i...]]></description><category></category></item><item><title><![CDATA[python的socket模块]]></title><link>https://blog.csdn.net/ChaseRaod/article/details/80587936</link><guid>https://blog.csdn.net/ChaseRaod/article/details/80587936</guid><author>ChaseRaod</author><pubDate>Tue, 05 Jun 2018 21:56:18 +0800</pubDate><description><![CDATA[原文地址：http://www.jb51.net/article/19751.htm
&amp;nbsp;
&amp;nbsp;
一、网络知识的一些介绍
&amp;nbsp;
socket 是网络连接端点。例如当你的Web浏览器请求www.jb51.net上的主页时，你的Web浏览器创建一个socket并命令它去连接&amp;nbsp;www.jb51.net的Web服务器主机，Web服务器也对来自的请求在一个socket上进行...]]></description><category></category></item></channel></rss>