> 백엔드 개발 > 파이썬 튜토리얼 > 知乎上有哪些好的程序员可以关注?

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

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으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿