<h4>Counter</h4> <p><code>Counter</code>是<code>dict</code>的子类,用于计算一个可迭代对象各元素的个数。其对象的键是出现过的对象,值是其出现的个数。</p> <h5>初始化</h5> <p>使用一...
<h4>clear做了啥?</h4> <p><code>clear</code>做的工作很简单:把待输入的下一行移动到左上角。 <br />所以你看,它根本没有真正对终端的内容进行清除,只不过是将其藏起来了。</p> <h5>如何...
<h4>声明</h4> <p>此文章为个人翻译,原文出自:<a href="http://nbviewer.ipython.org/github/rasbt/python_reference/blob/master/not_so_obvious_python_stuff.ipynb">码农周刊</a>。 <b...
<h4>快速开始</h4> <p>日志级别 <br />权值</p> <p>CRITICAL <br />50</p> <p>ERROR <br />40</p> <p>WARNING <br />30</p> <p>INFO <br />20</p> <p>DEBUG <br />10</p> <p>NOTSET <br />0<...
<h4>介绍</h4> <p><strong>Python</strong>中有两个将对象转字符串的魔法方法:<code>__repr__</code>和<code>__str__</code>。分别可以使用内建函数<code>repr(obj)</code>和<code>str(obj...
<h4>url解析相关</h4> <h5>统一资源定位符(url)</h5> <pre><code>scheme://domain:port/[path][;params][?query][#fragment] </code></pre> <ol> <li><strong>scheme</strong>:协议类型。...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <string.h> //父进程 void pProc(int fd0,int fd1) { char buf[513]; int len...
没有更多内容
加载失败,请刷新页面
没有更多内容
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复