![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 88
illuminati
功力提升中
展开
-
Python 登录人人网并抓取新鲜事
from sgmllib import SGMLParserimport sys,urllib2,urllib,cookielibclass spider(SGMLParser): def __init__(self,email,password): SGMLParser.__init__(self) self.h3=False转载 2012-08-24 00:13:45 · 1008 阅读 · 0 评论 -
Python bad interpreter: No such file or directory
这类错误有两种表现形式:1、-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory 这个错误是因为python的版本不匹配,只要在/usr/bin/yum中把第一行的#!/usr/bin/python改成#!/usr/bin/python2.4就可以啦~当然,我是转载 2013-02-08 01:13:19 · 3452 阅读 · 0 评论 -
【Python】TypeError: 'module' object is not callable 原因分析
程序代码 class Person: #constructor def __init__(self,name,sex): self.Name = name self.Sex = sex def ToString(self): return 'Name:'+self.Name+',Sex:'+s转载 2013-02-15 13:22:34 · 1436 阅读 · 0 评论 -
Eclipse 查看隐藏字符
This feature can either be controlled via "General > Editors > Text Editors > Show whitespace characters" preference, or via the tool bar button when the Editor Presentation action set is enabled.原创 2013-02-17 22:39:29 · 944 阅读 · 0 评论 -
Python: Shallow and deep copy operations
Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed so one c原创 2013-04-06 01:31:12 · 1597 阅读 · 0 评论