![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
读书笔记
文章平均质量分 88
s1mba
这个作者很懒,什么都没留下…
展开
-
《Accelerated C++》 笔记摘录
1. A variable is an object that has a name. it is possible to have objects that do not have names,but variable must have a name. the limited lifetime of local variables is one reason that it原创 2013-04-16 14:09:17 · 3172 阅读 · 0 评论 -
TopCoder Practice SRMs -- SRM 144 DIV 1 -- 300p
Problem Statement Let's say you have a binary string such as the following: 011100011 One way to encrypt this string is to add to each digit the sum of its adjacent digits. For exampl原创 2013-04-15 16:11:30 · 2432 阅读 · 0 评论 -
《TCP/IP 卷一》笔记、ping和traceroute 的实现思路
一、TCP协议相关笔记Normally TCP does not send an ACK the instant it receives data. Instead, it delays the ACK, hoping to have data going in the same direction as the ACK, so the ACK can be sent along原创 2013-10-21 20:59:57 · 4307 阅读 · 2 评论 -
《dive into python3》 笔记摘录
1、list can hold arbitrary objects and can expand dynamically as new items are added. A list is an ordered set of items.2、A tuple is an immutable list. A tuple can not be changed in any way once原创 2013-10-16 17:41:41 · 3550 阅读 · 0 评论 -
《linux c 编程一站式学习》课后部分习题解答
1、假设变量x和n是两个正整数,我们知道x/n这个表达式的结果要取Floor,例如x是17,n是4,则结果是4。如果希望结果取Ceiling应该怎么写表达式呢?例如x是17,n是4,则结果是5;x是16,n是4,则结果是4。答: (x+n-1)/n(1). 设x=kn,k为整数,即x为n的整数倍。则(x+n-1)/n=(kn+n-1)/n=((k+1)n-1)/n,此时分子没有达到n的k+原创 2013-04-16 16:20:02 · 6111 阅读 · 4 评论 -
《Python 源码剖析》一些理解以及勘误笔记(2)
以下是本人阅读此书时理解的一些笔记,包含一些影响文义的笔误修正,当然不一定正确,贴出来一起讨论。注:此书剖析的源码是2.5版本,在python.org 可以找到源码。纸质书阅读,pdf 贴图。文章篇幅太长,故切分成2部分,这是第二部分。p248: 嵌套函数、闭包和 decorator co_cellvars: 通常是一个tuple,保存嵌套的作用域内原创 2015-04-28 22:20:57 · 2681 阅读 · 1 评论 -
《Python 源码剖析》一些理解以及勘误笔记(3)
以下是本人阅读此书时理解的一些笔记,包含一些影响文义的笔误修正,当然不一定正确,贴出来一起讨论。注:此书剖析的源码是2.5版本,在python.org 可以找到源码。纸质书阅读,pdf 贴图。文章篇幅太长,故切分成3部分,这是第三部分。p316: 初始化线程环境Python 虚拟机运行期间某个时刻整个的运行环境如下图:建立原创 2015-05-09 11:57:27 · 4748 阅读 · 2 评论 -
《鸟哥的linux私房菜》基本命令笔记
1.以前没注意过的,略写的命令option后面只能空格后加参数,而标准option即可以空格也可以等号后跟着参数,如date命令,date -r filename ;; date --reference filename ;; date --reference=filename 都是正确的。2.对于目录来说,即使有r,没有X,也不能进入目录。对于文件来说,x表示这个文件原创 2013-04-15 14:06:21 · 6156 阅读 · 1 评论 -
《Python 源码剖析》一些理解以及勘误笔记(1)
以下是本人阅读此书时理解的一些笔记,包含一些笔误的地方,当然不一定正确,贴出来一起讨论。注:此书剖析的源码是2.5版本,在python.org 可以找到源码。p9:int_repr 函数中 PyObject_Print(str, stdout, 0); stdout-->outp23:tp_as_number.nb_add --> tp_as_number-->nb_ad原创 2015-04-26 14:51:06 · 2554 阅读 · 1 评论