This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from HTMLParser import HTMLParser | |
import urllib | |
import sys | |
class parselinks(HTMLParser): | |
def __init__(self): | |
self.data=[] | |
self.href=0 | |
self.linkname='' | |
HTMLParser.__init__(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |
<html> | |
<head> | |
<title>this is rose</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-1948154-1']); | |
_gaq.push(['_trackPageview']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |
<html> | |
<head> | |
<title>this rose</title> | |
<meta charset="utf-8"> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-1948154-1']); | |
_gaq.push(['_trackPageview']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from myThread import MyThread | |
from time import ctime | |
from time import sleep | |
import sys | |
def fib(x): | |
# sleep(0.005) | |
if x<2:return 1 | |
return (fib(x-2) + fib(x-1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding=utf-8 | |
# trans.py | |
# create :2010-6-2 | |
# last modify: 2010-6-3 | |
# author : ice_cube | |
import urllib,urllib2 | |
from sgmllib import SGMLParser | |
class URLLister(SGMLParser): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"设置TAB键为4个空格 | |
set tabstop =4 | |
"显示行号 | |
set number | |
"关闭vi兼容模式 | |
set nocompatible | |
"自动语法高亮 | |
syntax enable | |
syntax on |
NewerOlder