码迷,mamicode.com
首页 >  
搜索关键字:python 代理 beautifulsoup    ( 156361个结果
Linux上配置HTTP代理及代理例外
在Ubuntu , Debian或者Mint:$ sudo vi /etc/environmenthttp_proxy="http://proxy.com:8000"no_proxy="127.0.0.1, localhost, *.cnn.com, 192.168.1.10, domain.com...
分类:系统相关   时间:2014-05-01 11:27:54    阅读次数:1617
[笔记]--在Ubuntu系统用Python连接Mysql数据库
环境:Ubuntu11.10,Python2.7,Mysql5.0.95在Ubuntu终端输入命令安装Python的Mysql模块sudo apt-get install python-mysqldb就这么简单;运行一下脚本:#!/usr/bin/python#-*-coding=utf-8##im...
分类:数据库   时间:2014-05-01 10:54:23    阅读次数:474
ILGenerator.Emit动态 MSIL编程(一)
首先在Framework中,Emit相关的类基本都存在于System.Reflection.Emit命名空间下。可见Emit是作为反射的一个元素存在的。Emit能够实现什么?为什么要学习Emit?首先Emit是C#实现动态代理最佳的方式.动态代理技术也是AOP的思想精髓。现在一些主流的ORM框架也....
分类:其他好文   时间:2014-05-01 10:50:35    阅读次数:387
[leetcode]LRU Cache @ Python
原题地址:http://oj.leetcode.com/problems/lru-cache/题意:设计LRU Cache参考文献:http://blog.csdn.net/hexinuaa/article/details/6630384 这篇博文总结的很到位。 https://github...
分类:编程语言   时间:2014-05-01 10:47:16    阅读次数:501
[leetcode]Linked List Cycle @ Python
原题地址:http://oj.leetcode.com/problems/linked-list-cycle/题意:判断链表中是否存在环路。解题思路:快慢指针技巧,slow指针和fast指针开始同时指向头结点head,fast每次走两步,slow每次走一步。如果链表不存在环,那么fast或者fast...
分类:编程语言   时间:2014-05-01 10:33:38    阅读次数:426
[leetcode]Linked List Cycle II @ Python
原题地址:http://oj.leetcode.com/problems/linked-list-cycle-ii/题意:如果链表中存在环路,找到环路的起点节点。解题思路:这道题有点意思。首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。具体技巧参见上一篇http://w...
分类:编程语言   时间:2014-05-01 08:19:31    阅读次数:340
反向代理配置
nginxserver { listen 80; server_name localhost; root /apps/web/; index index.html; location / { } location /server { ...
分类:其他好文   时间:2014-05-01 08:03:15    阅读次数:902
回文验证
A_byte_of_Python-v192-for_Python_3.0-中文版.pdf 中的一道题:练习题: 检测一个文本是否为回文应该忽略标点,空格和大小写。 例如”Rise to vote, sir.”同样是一个回文,但是我们当前的例子无法识别它。你能改善这个例子让它做都这点吗?代码有点挫,莫...
分类:其他好文   时间:2014-05-01 06:52:33    阅读次数:359
[leetcode]Swap Nodes in Pairs @ Python
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4, you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
分类:编程语言   时间:2014-05-01 06:44:21    阅读次数:339
[leetcode]Remove Nth Node From End of List @ Python
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given a linked list, remove thenthnode from the end of list and return its he...
分类:编程语言   时间:2014-05-01 06:42:15    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!