想关注几个优秀(泛指技术过硬,思维活跃,爱好广泛)的程序员。尤其是写Python的。
回复内容:
抖个机灵,来个乾坤大挪移吧。要收集整个页面里出现过的、知乎自动插入的链接形式at的,请把下面代码复制粘贴到浏览器地址栏然后回车:
<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> <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> <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 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>
知乎女程序员索引: @钟莫兮@珵cici@隋柯西@赵丹@李琴@走嗅@黄森婧@晴天@杨筱@刘赞赞@Goodspeed@郭丹青
欢迎回复补充。 匿名用户
技术过硬,思维活跃,爱好广泛。
我喜欢把他在某一领域下的回答当专栏看。
我只能帮大家到这里了!!! @vczh@狼大人@Rio
这些都是我知道的比较厉害点的程序员,还有我不知道的,请楼下补充。
--------------------------------------------
其实我想说,请关注我~! 其实把回答这个问题的所有人关注一遍就够了…
顺便推荐R大的脚本 @RednaxelaFX @遥同学
江湖人称红灯区钟汉良。
三观正,不站队,
性取向随和,关注面广泛,
当然主要还是长得好看的妹子和和小黄文。
但是点赞还是比较谨慎的,毕竟要对得起我那几百(k)个关注者。
+++++++++++++++++++++++++++++++++
这种时候必须出来装装逼啊。
万一被猎头看上了呢? 荐 @RednaxelaFX 谢谢,请多多关心一下女程。 @夏小筱 支持 @RednaxelaFX 和 @蓝色 大大

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于Seaborn的相关问题,包括了数据可视化处理的散点图、折线图、条形图等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于进程池与进程锁的相关问题,包括进程池的创建模块,进程池函数等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于简历筛选的相关问题,包括了定义 ReadDoc 类用以读取 word 文件以及定义 search_word 函数用以筛选的相关内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于数据类型之字符串、数字的相关问题,下面一起来看一下,希望对大家有帮助。

VS Code的确是一款非常热门、有强大用户基础的一款开发工具。本文给大家介绍一下10款高效、好用的插件,能够让原本单薄的VS Code如虎添翼,开发效率顿时提升到一个新的阶段。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于numpy模块的相关问题,Numpy是Numerical Python extensions的缩写,字面意思是Python数值计算扩展,下面一起来看一下,希望对大家有帮助。

pythn的中文意思是巨蟒、蟒蛇。1989年圣诞节期间,Guido van Rossum在家闲的没事干,为了跟朋友庆祝圣诞节,决定发明一种全新的脚本语言。他很喜欢一个肥皂剧叫Monty Python,所以便把这门语言叫做python。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version
Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
