![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
翩翩好少年
Stay foolish,Stay hungry
展开
-
Python3.3搭建简单的HTTP服务器
#python搭建简单的http服务器#同一目录下的文件将被作为请求资源from http.server import HTTPServer, CGIHTTPRequestHandlerport = 8080httpd = HTTPServer(('',port), CGIHTTPRequestHandler)print('Starting simple httpd on po转载 2013-12-16 21:55:00 · 4325 阅读 · 0 评论 -
python3 爬虫
自己写的,python3抓取百度贴吧的爬虫from urllib import request, error, parseimport re, hashlib, os#百度贴吧爬虫#python3.3.3class Baidu_tieba: contentType = '' #资源类型 charset = '' #资源编码 filepath = '原创 2013-12-27 16:47:44 · 1713 阅读 · 0 评论