![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
littlewhite1218
举世皆太平,我独不得宁。希然吾所有,不与天下争
展开
-
python网页解析利器——BeautifulSoup
python解析网页,无出BeautifulSoup左右,此是序言 安装 BeautifulSoup4以后的安装需要用eazy_install,如果不需要最新的功能,安装版本3就够了,千万别以为老版本就怎么怎么不好,想当初也是千万人在用的啊。安装很简单 wget "http://www.crummy.com/software/BeautifulSoup/download/3.x/Be原创 2014-10-10 15:12:44 · 817 阅读 · 0 评论 -
一行Python代码——单词逆转
QuestionGiven an input string, reverse the string word by word. For example, Given s = “the sky is blue“, return “blue is sky the“.Answerdef reverseWords(s): return ' '.join(filter(lambda x:x !=原创 2015-06-05 18:25:26 · 863 阅读 · 1 评论 -
Python调用C++程序备忘笔记
Python调用C++程序备忘笔记Python的优点是开发效率高,使用方便,C++则是运行效率高,这两者可以相辅相成,不管是在Python项目中嵌入C++代码,或是在C++项目中用Python实现外围功能,都可能遇到Python调用C++模块的需求,下面列举出集中c++代码导出成Python接口的几种基本方法原生态导出Python解释器就是用C实现,因此只要我们的C++的数据结构能让Python认识原创 2015-09-02 17:30:04 · 2005 阅读 · 1 评论 -
C++ & Python 多线程笔记
C++ & Python 多线程笔记原创 2016-08-01 17:41:47 · 537 阅读 · 0 评论