<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[death_include的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/death_include</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; death_include]]></copyright><item><title><![CDATA[Python切记用super初始化父类]]></title><link>https://blog.csdn.net/death_include/article/details/89201789</link><guid>https://blog.csdn.net/death_include/article/details/89201789</guid><author>death_include</author><pubDate>Thu, 11 Apr 2019 06:28:31 +0800</pubDate><description><![CDATA[Python多重继承python多重继承要点多重继承 如果还是用上面这种方式会导致超类被初始化两次. so要使用superPython2  3 区别
python多重继承要点
一种很挫的写法
class MyBase(object):                                                           
    def __init__(self, ...]]></description><category></category></item><item><title><![CDATA[缓冲输入输出]]></title><link>https://blog.csdn.net/death_include/article/details/82963008</link><guid>https://blog.csdn.net/death_include/article/details/82963008</guid><author>death_include</author><pubDate>Mon, 08 Oct 2018 05:57:53 +0800</pubDate><description><![CDATA[用户 - 缓冲I/O
块大小

实际应用中, 快大小一般是512字节, 1024字节, 2048字节,或4096字节.
效率的大规模提升只是通过每次操作的数据设置为快大小的整数倍或者约数倍获得的. 这是因为内核和硬件之间是通过块交互的. 所以使用块大小保证请求是块对齐的, 可以防止无关的内核操作.

标准I/O

C标准库中提供了标准I/O(通常简单称作stdio). 其中实现了一个跨平台用户缓冲...]]></description><category></category></item><item><title><![CDATA[linux I/O]]></title><link>https://blog.csdn.net/death_include/article/details/82730384</link><guid>https://blog.csdn.net/death_include/article/details/82730384</guid><author>death_include</author><pubDate>Sun, 16 Sep 2018 22:10:11 +0800</pubDate><description><![CDATA[read返回值


  
  调用返回一个等于len的值. 所有len个被读字节存储在buf中. 结果和预期一致.
  调用返回了一个大于0但是小于len的值. 读取的字节存入buf中. 这种情况出现在一个信号打断了读取过程, 或在读取中发生了一个错误, 有效字节大于0, 但是比len少时, 或者在读入len个字节前已抵达EOF. 再次进行读取(更新了buf和len的值)将读入剩余字节到buf的剩...]]></description><category></category></item><item><title><![CDATA[python函数递归小坑]]></title><link>https://blog.csdn.net/death_include/article/details/80935262</link><guid>https://blog.csdn.net/death_include/article/details/80935262</guid><author>death_include</author><pubDate>Fri, 06 Jul 2018 07:35:53 +0800</pubDate><description><![CDATA[看js看到 
arguments.callee  这个属性指向了拥有arguments属性的函数 
从而想到python是否也会有 函数名覆盖的问题.

def factorial(num):                                                             
    if num &amp;amp;lt;= 1:                       ...]]></description><category></category></item><item><title><![CDATA[Python threading]]></title><link>https://blog.csdn.net/death_include/article/details/80279283</link><guid>https://blog.csdn.net/death_include/article/details/80279283</guid><author>death_include</author><pubDate>Fri, 11 May 2018 11:35:44 +0800</pubDate><description><![CDATA[这里选自python核心编程第二版的例子 
threading模块的多线程实现 
两种方式.

第一种提供参数用threading.Thread去构造

import threading
from time import sleep, ctime

loops = [4, 2]

def loop(nloop, nsec):
    print 'start loop', nllp, 'at:',...]]></description><category></category></item><item><title><![CDATA[python  utc datetime转换为时间戳]]></title><link>https://blog.csdn.net/death_include/article/details/80013138</link><guid>https://blog.csdn.net/death_include/article/details/80013138</guid><author>death_include</author><pubDate>Fri, 20 Apr 2018 00:59:59 +0800</pubDate><description><![CDATA[Python utc datetime转换为时间戳

最近python代码遇到了一个神奇的需求, 就是如果将python utc datetime转换为时间戳.

百度找到都是使用time.mktime(xxx) 但是看到官网文档里写

time.mktime(t) 
This is the inverse function of localtime() 
而且亲测 这样将UTC datetime...]]></description><category></category></item><item><title><![CDATA[linux环境]]></title><link>https://blog.csdn.net/death_include/article/details/79922514</link><guid>https://blog.csdn.net/death_include/article/details/79922514</guid><author>death_include</author><pubDate>Fri, 13 Apr 2018 01:21:19 +0800</pubDate><description><![CDATA[[python3] 
1 ./configure –prefix=/usr/local/python3 
2 make 
3 make install 
4 ln -s /usr/local/python3/bin/python3 /usr/bin/python3

make install error  required PIP. 
We could  
yum -y install epel-...]]></description><category></category></item><item><title><![CDATA[python判断list]]></title><link>https://blog.csdn.net/death_include/article/details/79703235</link><guid>https://blog.csdn.net/death_include/article/details/79703235</guid><author>death_include</author><pubDate>Mon, 26 Mar 2018 20:07:17 +0800</pubDate><description><![CDATA[python判断list

今天写代码的时候碰到了一个很好玩的事情,  
   hello = [] 
   那么问题来了 hello is [] 这句话是True还是False呢? 果不期然, 是False.

看起来判断是否为空的is None 并不能写顺手了哦

看起来 还是 if not hello 好一些哦.

如果要判断是否为list 
   正确做法是 isinstance(hell...]]></description><category></category></item><item><title><![CDATA[vim配置]]></title><link>https://blog.csdn.net/death_include/article/details/78652656</link><guid>https://blog.csdn.net/death_include/article/details/78652656</guid><author>death_include</author><pubDate>Tue, 28 Nov 2017 10:50:09 +0800</pubDate><description><![CDATA[set nopaste 
set list 
set nu 
set colorcolumn=80 
highlight colorcolumn cterm=NONE ctermbg=red ctermfg=None guibg=NONE guifg=NONE 
set smartindent 
set expandtab 
set tabstop=4 
set nowrap 
set enc=ut]]></description><category></category></item><item><title><![CDATA[ubuntu17.04 vim取消自动缩进]]></title><link>https://blog.csdn.net/death_include/article/details/75269478</link><guid>https://blog.csdn.net/death_include/article/details/75269478</guid><author>death_include</author><pubDate>Mon, 17 Jul 2017 23:32:51 +0800</pubDate><description><![CDATA[新装了ubuntu17.04, 可是一直用Centos系列, 之后自带的vi用不习惯, 便使用apt-get install vim, 结果安装后这个自动换行让我心碎, 使用了nowrap仍旧没有什么卵用, 最后一顿操作终于找到了处理的办法在vim的配置文件 vimrc的结尾加上 
目录 /etc/vim/vimrc   /usr/share/vim/vimrc 这两个看看~~ 
set nowra]]></description><category></category></item><item><title><![CDATA[%格式化符在policy GenericCheck神奇用法]]></title><link>https://blog.csdn.net/death_include/article/details/70186137</link><guid>https://blog.csdn.net/death_include/article/details/70186137</guid><author>death_include</author><pubDate>Sat, 15 Apr 2017 18:47:39 +0800</pubDate><description><![CDATA[policy 在做权限校验的时候 在GenericCheck类中有这么一句match = self.match % target 
因为match 形如  “%(project_id)”所以这里铁定认为target是一个字符串， 然而~ 
在server_start_stop.py 这里传入的target分明是一个返回的对象，我一脸懵逼 
各种测试发现 %  符号 后面跟上一个字典{}中只要有前面的]]></description><category></category></item><item><title><![CDATA[linux 命令终端显示-bash-4.2#解决方法]]></title><link>https://blog.csdn.net/death_include/article/details/68941048</link><guid>https://blog.csdn.net/death_include/article/details/68941048</guid><author>death_include</author><pubDate>Sat, 01 Apr 2017 09:27:01 +0800</pubDate><description><![CDATA[原文链接:http://blog.csdn.net/qq_26071477/article/details/53144654


配置阿里云Linux不知道因为什么原因导致终端提示符由原来的root@主机名+路径变为了bash-4.2。烦恼的是显示不了路径目录名，随后在网上百度了很久，给出的答案都很相似，根本原因是配置文件的缺失。
    由于使用的是阿里云的centos版本，多少跟别人不]]></description><category></category></item><item><title><![CDATA[Centos7 firewall开放端口]]></title><link>https://blog.csdn.net/death_include/article/details/68489010</link><guid>https://blog.csdn.net/death_include/article/details/68489010</guid><author>death_include</author><pubDate>Thu, 30 Mar 2017 16:06:49 +0800</pubDate><description><![CDATA[firewall-cmd –zone=public –add-port=80/tcp –permanent]]></description><category></category></item><item><title><![CDATA[用本地光盘建yum仓库安装Gcc]]></title><link>https://blog.csdn.net/death_include/article/details/68483225</link><guid>https://blog.csdn.net/death_include/article/details/68483225</guid><author>death_include</author><pubDate>Thu, 30 Mar 2017 09:37:21 +0800</pubDate><description><![CDATA[Centos用本地光盘建yum仓库安装Gcc这几天需要搭建一个Centos的环境, 然后就丢过来一个裸机….然后就开始一顿操作开始装…….(然而并不是Vmware workstation的那种简易安装)这时候就想着开始编译安装apache服务了, 结果发现一个非常致命的问题, 没有gcc…..搞了很久想直接用光盘里的rpm包开始手动安装, 但就是Centos7 就默默的告诉我 it didn’t w]]></description><category></category></item><item><title><![CDATA[PIP和Scrapy安装|地狱难度安装版本!!!]]></title><link>https://blog.csdn.net/death_include/article/details/68362188</link><guid>https://blog.csdn.net/death_include/article/details/68362188</guid><author>death_include</author><pubDate>Thu, 30 Mar 2017 02:14:18 +0800</pubDate><description><![CDATA[目前系统版本 
cat /etc/redhat-release  
CentOS Linux release 7.1.1503 (Core)  
python版本 Python 2.7.5pip安装https://bootstrap.pypa.io/get-pip.py 
下载下来会得到一个get-pip.py 
然后执行python get-pip.py 会自动下载安装pip安装Scrapypip]]></description><category></category></item><item><title><![CDATA[linux io复用之select]]></title><link>https://blog.csdn.net/death_include/article/details/66476932</link><guid>https://blog.csdn.net/death_include/article/details/66476932</guid><author>death_include</author><pubDate>Sun, 26 Mar 2017 16:58:59 +0800</pubDate><description><![CDATA[文章内容参考：linux高性能服务器编程 
        I/O复用虽然能同时监听多个文件描述符， 但是它本身是阻塞的。并且当多个文件描述符同时就绪时，如果不采取额外的措施，程序，就只能按照顺序依次处理其中的每一个描述符。 
          select原型     #include <sys/select.h>
     int select(int nfds, fd_set* readfd]]></description><category></category></item><item><title><![CDATA[__alignof]]></title><link>https://blog.csdn.net/death_include/article/details/62217461</link><guid>https://blog.csdn.net/death_include/article/details/62217461</guid><author>death_include</author><pubDate>Wed, 15 Mar 2017 11:07:17 +0800</pubDate><description><![CDATA[__alignof 获的指定字节的对齐方式


struct
{
    int a;
    double b;
}hello;
//__alignof(hello) == 8]]></description><category></category></item><item><title><![CDATA[二叉树递归C实现]]></title><link>https://blog.csdn.net/death_include/article/details/51420722</link><guid>https://blog.csdn.net/death_include/article/details/51420722</guid><author>death_include</author><pubDate>Mon, 16 May 2016 01:57:09 +0800</pubDate><description><![CDATA[重点内容 
本文是简单的用递归的方法实现了二叉树虽然看似是C++ 实际上使用C的风格完成的 
之后会补上C++的代码。二叉树的节点建立typedef char ElemType;#define END '#'typedef struct BtNode
{
    ElemType data;   //数据域
    BtNode *leftchild;//左孩子
    BtNode *rightc]]></description><category></category></item><item><title><![CDATA[用C++实现单链表]]></title><link>https://blog.csdn.net/death_include/article/details/51391939</link><guid>https://blog.csdn.net/death_include/article/details/51391939</guid><author>death_include</author><pubDate>Fri, 13 May 2016 02:52:18 +0800</pubDate><description><![CDATA[重点内容 
    用C++实现单链表， 仅仅自己练手之作#include <iostream>
using namespace std;
class Clist
{
public:
    Clist()
    {
        mphead = new Node();
    }
    ~Clist()
    {
        Node *p = mphead;
        whi]]></description><category></category></item></channel></rss>