<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[海中月是天上月]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/kkknd007</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; kkknd007]]></copyright><item><title><![CDATA[函数式编程实战教程（Python版）]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/119256924</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/119256924</guid><author>kkknd007</author><pubDate>Fri, 30 Jul 2021 22:09:56 +0800</pubDate><description><![CDATA[许多函数式文章讲述的是组合、流水线和高阶函数这样的抽象函数式技术。本文不同，它展示了人们每天编写的命令式、非函数式代码示例，以及将这些示例转换为函数式风格。
文章的第一部分将一些短小的数据转换循环重写成函数式的 maps 和 reduces 。第二部分选取长一点的循环，把他们分解成单元，然后把每个单元改成函数式的。第三部分选取一个很长的连续数据转换循环，然后把它分解成函数式流水线。
示例都是用 Python 写的，因为很多人觉得 Python 易读。为了证明函数式技术对许多语言来说都相同，许多示例避免使用 ]]></description><category></category></item><item><title><![CDATA[Understanding Python metaclasses]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/119123733</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/119123733</guid><author>kkknd007</author><pubDate>Tue, 27 Jul 2021 01:38:59 +0800</pubDate><description><![CDATA[Understanding Python metaclasses

原文地址：https://blog.ionelmc.ro/2015/02/09/understanding-python-metaclasses/
译文参考：https://blog.youkuaiyun.com/wwx890208/article/details/80644400
国外的一位程序员（Ionel）在网上看了很多讲述Python元类的文章，但觉得没有一篇能讲明白元类在Python中是如何工作的，所以 Ionel 写了这篇文章，给出了自己的]]></description><category></category></item><item><title><![CDATA[深刻理解Python中的元类(metaclass)]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/119123719</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/119123719</guid><author>kkknd007</author><pubDate>Tue, 27 Jul 2021 01:38:08 +0800</pubDate><description><![CDATA[深刻理解Python中的元类

译注：这是一篇在Stack overflow上很热的帖子。提问者自称已经掌握了有关Python OOP编程中的各种概念，但始终觉得元类（metaclass）难以理解。他知道这肯定和自省有关，但仍然觉得不太明白，希望大家可以给出一些实际的例子和代码片段以帮助理解，以及在什么情况下需要进行元编程。于是e-satis同学给出了神一般的回复，该回复获得了985点的赞同点数，更有人评论说这段回复应该加入到Python的官方文档中去。而e-satis同学本人在Stack Overflow]]></description><category></category></item><item><title><![CDATA[Ubuntu 18.04 LTS安装KVM虚拟机]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/105288290</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/105288290</guid><author>kkknd007</author><pubDate>Fri, 03 Apr 2020 11:13:08 +0800</pubDate><description><![CDATA[1 KVM安装
1.1 配置确认
首先需要确认服务器的硬件是否支持虚拟化，执行如下命令：
egrep -c '(vmx|svm)' /proc/cpuinfo

如果输出结果大于0，意味着服务器硬件是支持虚拟化的。否则，重启进入BIOS设置中启用VT技术。
1.2 安装KVM
安装KVM及依赖项：
sudo apt update
sudo apt install qemu qemu-kvm lib...]]></description><category></category></item><item><title><![CDATA[对Zebra的一点思考(Think of Zebra)]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/83384236</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/83384236</guid><author>kkknd007</author><pubDate>Thu, 25 Oct 2018 18:31:59 +0800</pubDate><description><![CDATA[
转自:netwalker.blog.chinaunix.net
http://blog.chinaunix.net/uid-20608849-id-2103544.html

此文并不是针对Zebra的应用，甚至不是一个架构的分析，只是对于Zebra的一点儿思考。
Zebra设计得是如此简洁明快，每一种数据结构均对应于一定的应用。它们之间以一种松耦合的方式共存，而多种数据结构组成的功能模块几乎完...]]></description><category></category></item><item><title><![CDATA[代码实现Linux的ac命令]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/80783494</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/80783494</guid><author>kkknd007</author><pubDate>Sat, 23 Jun 2018 14:41:02 +0800</pubDate><description><![CDATA[ac命令是什么？

man ac命令后的解释是：“打印用户连接时间的统计数据”。 
附带的两个常用的命令参数： 
-d  日统计 
-p  每个用户的统计

ac命令运行结果

进入命令行，依次敲下命令，输出结果比较了然：

$ ac
    total      312.64
$ ac -d
Oct  8    total       48.11
Oct  9    total       74...]]></description><category></category></item><item><title><![CDATA[sys/time.h 和 time.h]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/80762666</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/80762666</guid><author>kkknd007</author><pubDate>Thu, 21 Jun 2018 16:40:32 +0800</pubDate><description><![CDATA[time.h 是 ISO C99 标准日期时间头文件。 
  sys/time.h 是 Linux系统 的日期时间头文件。  
  sys/time.h 通常会包含 #include &amp;amp;amp;lt;time.h&amp;amp;amp;gt; 。 
  编写的代码如果与平台无关的，则需要在代码里 #include &amp;amp;amp;lt;time.h&amp;amp;amp;gt;，但这样使用 time_t 等数据结构的话需要手动 
   #define __...]]></description><category></category></item><item><title><![CDATA[Centos 7安装Quagga]]></title><link>https://blog.youkuaiyun.com/kkknd007/article/details/80431668</link><guid>https://blog.youkuaiyun.com/kkknd007/article/details/80431668</guid><author>kkknd007</author><pubDate>Thu, 24 May 2018 11:13:31 +0800</pubDate><description><![CDATA[安装包

quagga-0.99.22.4.tar.gz



安装

mkdir /var/run/quagga 
chmod 777 /var/run/quagga 
mkdir /etc/quagga 
chmod 777 /etc/quagga 
tar -zxf quagga-0.99.22.4.tar.gz 
cd quagga-0.99.22.4 
./configure –enab...]]></description><category></category></item></channel></rss>