首页 > 后端开发 > Python教程 > 知乎上有哪些好的程序员可以关注?

知乎上有哪些好的程序员可以关注?

WBOY
发布: 2016-06-06 16:21:55
原创
1588 人浏览过

想关注几个优秀(泛指技术过硬,思维活跃,爱好广泛)的程序员。尤其是写Python的。

回复内容:

抖个机灵,来个乾坤大挪移吧。
要收集整个页面里出现过的、知乎自动插入的链接形式at的,请把下面代码复制粘贴到浏览器地址栏然后回车:
<code class="language-js"><span class="nx">javascript</span><span class="o">:</span><span class="kd">var</span> <span class="nx">hashes</span> <span class="o">=</span> <span class="p">[];</span> <span class="kd">var</span> <span class="nx">list</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s2">".member_mention"</span><span class="p">).</span><span class="nx">get</span><span class="p">().</span><span class="nx">filter</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span> <span class="kd">var</span> <span class="nx">h</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">e</span><span class="p">).</span><span class="nx">attr</span><span class="p">(</span><span class="s1">'data-hash'</span><span class="p">);</span> <span class="k">if</span> <span class="p">(</span><span class="nx">hashes</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">h</span><span class="p">)</span> <span class="o"> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span> <span class="nx">hashes</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">h</span><span class="p">);</span> <span class="k">return</span> <span class="kc">true</span> <span class="p">}</span> <span class="k">else</span> <span class="p">{</span> <span class="k">return</span> <span class="kc">false</span> <span class="p">}</span> <span class="p">}).</span><span class="nx">sort</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">a</span><span class="p">,</span> <span class="nx">b</span><span class="p">)</span> <span class="p">{</span> <span class="kd">var</span> <span class="nx">atext</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">a</span><span class="p">).</span><span class="nx">text</span><span class="p">(),</span> <span class="nx">btext</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">b</span><span class="p">).</span><span class="nx">text</span><span class="p">();</span> <span class="k">if</span> <span class="p">(</span><span class="nx">atext</span> <span class="o">></span> <span class="nx">btext</span><span class="p">)</span> <span class="k">return</span> <span class="mi">1</span><span class="p">;</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">atext</span> <span class="o"> <span class="nx">btext</span><span class="p">)</span> <span class="k">return</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span> <span class="k">return</span> <span class="mi">0</span><span class="p">;</span> <span class="p">});</span> <span class="kd">var</span> <span class="nx">target</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="nx">$</span><span class="p">(</span><span class="s2">"#zh-question-detail"</span><span class="p">)[</span><span class="mi">0</span><span class="p">]).</span><span class="nx">empty</span><span class="p">();</span> <span class="nx">list</span><span class="p">.</span><span class="nx">forEach</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span> <span class="nx">target</span><span class="p">.</span><span class="nx">append</span><span class="p">(</span><span class="nx">e</span><span class="p">).</span><span class="nx">append</span><span class="p">(</span><span class="s2">"<br>"</span><span class="p">)</span> <span class="p">});</span> <span class="k">void</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
</span></span></code>
登录后复制
<code class="language-python"><span class="c">#coding=utf-8</span>
 
<span class="kn">import</span> <span class="nn">re</span>
<span class="kn">import</span> <span class="nn">urllib</span>

<span class="k">def</span> <span class="nf">getCoder</span><span class="p">(</span><span class="n">url</span><span class="p">):</span>
    <span class="n">page</span> <span class="o">=</span> <span class="n">urllib</span><span class="o">.</span><span class="n">urlopen</span><span class="p">(</span><span class="n">url</span><span class="p">)</span>
    <span class="n">html</span> <span class="o">=</span> <span class="n">page</span><span class="o">.</span><span class="n">read</span><span class="p">()</span>
    <span class="n">rule</span> <span class="o">=</span> <span class="s">r'<a data-hash=".*?" href="(.*?)" class=".*?">@.*?</a>'</span>
    <span class="n">coderList</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">findall</span><span class="p">(</span><span class="n">rule</span><span class="p">,</span><span class="n">html</span><span class="p">)</span>
    <span class="k">for</span> <span class="n">coderName</span> <span class="ow">in</span> <span class="n">coderList</span><span class="p">:</span>
        <span class="k">print</span> <span class="n">coderName</span>

<span class="n">getCoder</span><span class="p">(</span><span class="s">"http://www.zhihu.com/question/22576739"</span><span class="p">)</span>
</code>
登录后复制
知乎女程序员索引:
@钟莫兮@珵cici@隋柯西@赵丹@李琴@走嗅@黄森婧@晴天@杨筱@刘赞赞@Goodspeed@郭丹青

欢迎回复补充。 匿名用户


技术过硬,思维活跃,爱好广泛。
我喜欢把他在某一领域下的回答当专栏看。
我只能帮大家到这里了!!! @vczh@狼大人@Rio
这些都是我知道的比较厉害点的程序员,还有我不知道的,请楼下补充。


--------------------------------------------
其实我想说,请关注我~! 其实把回答这个问题的所有人关注一遍就够了…


顺便推荐R大的脚本 @RednaxelaFX @遥同学

江湖人称红灯区钟汉良。
三观正,不站队,
性取向随和,关注面广泛,
当然主要还是长得好看的妹子和和小黄文。
但是点赞还是比较谨慎的,毕竟要对得起我那几百(k)个关注者。
+++++++++++++++++++++++++++++++++
这种时候必须出来装装逼啊。
万一被猎头看上了呢? 荐 @RednaxelaFX 谢谢,请多多关心一下女程。 @夏小筱 支持 @RednaxelaFX 和 @蓝色 大大
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板