SlideShare a Scribd company logo
python 和 web 开发 温铭  Email:wenming@kingsoft.com blog:http://s8.hk/kr^_^ twitter:_wenming
不以规矩,不能成方圆 ----- 孟子 · 离娄上
官方编码规范 毒霸水银项目编码规范 Don'ts :匈牙利命名法、造轮子 注意:跨平台、编码
怎么入手 python 入门文档 了解常用库和用法: python cookbook IBM developerWorks :可爱的 python 多用
我不关心你的代码,我只关心数据 ----- 项目经理
收集 web 数据 urllib 、 re 、 Beautiful Soup http://www.ibm.com/developerworks/cn/linux/l-python-mechanize-beautiful-soup/ firebug
>>>from urllib import urlopen >>>doc = urlopen("http://www.python.org") >>>print doc.info() ... Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.5.2 ...
问题: 中国 top100 的网站使用的 web 服务器类型和比例?美国呢? 对比并分析这些数据
#!/usr/bin/python  # -*- coding: UTF-8 -*- import urllib,urllib2 def virus_total(): '''  通过 virus_total 来判断一个文件或者网址的安全性  ''' url = 'http://www.virustotal.com/search.html' user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' values = {'chain' : 'www.python.org'} headers = { 'User-Agent' : user_agent } data = urllib.urlencode(values) req = urllib2.Request(url, data, headers) response = urllib2.urlopen(req) the_page = response.read() if __name__ == '__main__': virus_total()
问题:完成上面这个半成品 代码规范、测试案例、易用性 ...
我不关心数据怎么来的,我只关心用户能看到什么 ------ 产品经理
提供 web 服务 豆瓣、海报、好看薄 搜狐闪电邮 毒霸云查杀 都是 python 实现
用哪个框架? 流行度 文档 稳定性 性能 功能
web 服务性能瓶颈 算法 架构 数据库 磁盘 缓存 多测试,少优化
不喜欢你提供的功能,给我服务,我自己做 ------ 专业用户
Google 、 Yahoo! facebook 、人人网 twitter 、新浪微博 eBay 、淘宝
sugarsync Dropbox SkyDrive Google Storage Amazon S3 存储服务有必要开放吗?
安全服务会开放吗? 网盾服务端:就是判断一个 URL 的安全性 杀软服务端:就是判断一个 MD5 的安全性 开放的难度不在技术,在心态 Google 已经开放
其他公司想接入毒霸的云查杀。查询参数为文件的 MD5 ,毒霸返回文件黑白灰的结果。你来设计下通信的协议。
Q&A

More Related Content

PPTX
海量统计数据的分布式MySQL集群——MyFOX
PPT
淘宝商品库MySQL优化实践
PDF
Gops2016 云端基于Docker的微服务与持续交付实践
PPT
Using google appengine_1027
PPT
Using google appengine (2)
PDF
Scaling Offline Database Usage On GCP @ Dcard
PDF
使用 Kong 與 GitOps 來管理您企業的 API 呼叫 @ 2024 台灣雲端大會
PDF
Python 于 webgame 的应用
海量统计数据的分布式MySQL集群——MyFOX
淘宝商品库MySQL优化实践
Gops2016 云端基于Docker的微服务与持续交付实践
Using google appengine_1027
Using google appengine (2)
Scaling Offline Database Usage On GCP @ Dcard
使用 Kong 與 GitOps 來管理您企業的 API 呼叫 @ 2024 台灣雲端大會
Python 于 webgame 的应用

Similar to Python和web开发 (20)

PPT
轻量级Flash服务器开发框架(刘恒)
PDF
該怎麼樣(認真的)部署你的 Python Web 應用程式?
PPTX
这年头,你只需要懂Node webkit
PDF
Python 實戰 WMS 系統開發 Python 實戰 WMS 系統開發 Python 實戰 WMS 系統開發
PPT
Using google appengine_final
PDF
柔性数据接口的设计与实现
PPTX
LineBot.pptx
PDF
20170430 python爬蟲攻防戰-攻防與金融大數據分析班
PPTX
LINE Messaging API with LinkIt 7697
PPTX
构建网络工具箱
PPTX
如何幫樹莓派安裝常用的Python套件(How to Install Python Package on Raspberry Pi)
PPTX
TBAD F2E 2010 review
PPT
20110821 Web Development on Cloud Platform - PIXNET
DOCX
Windows 環境下建構python 跑VMware API
PDF
用Cython封装c++代码为python模块的一点经验
PDF
Python meetup 1
PDF
Django step0
PPT
Collaboration On Rails
PPT
搜狐Pv insight(py)技术交流
 
PPT
搜狐Pv insight(py)技术交流
轻量级Flash服务器开发框架(刘恒)
該怎麼樣(認真的)部署你的 Python Web 應用程式?
这年头,你只需要懂Node webkit
Python 實戰 WMS 系統開發 Python 實戰 WMS 系統開發 Python 實戰 WMS 系統開發
Using google appengine_final
柔性数据接口的设计与实现
LineBot.pptx
20170430 python爬蟲攻防戰-攻防與金融大數據分析班
LINE Messaging API with LinkIt 7697
构建网络工具箱
如何幫樹莓派安裝常用的Python套件(How to Install Python Package on Raspberry Pi)
TBAD F2E 2010 review
20110821 Web Development on Cloud Platform - PIXNET
Windows 環境下建構python 跑VMware API
用Cython封装c++代码为python模块的一点经验
Python meetup 1
Django step0
Collaboration On Rails
搜狐Pv insight(py)技术交流
 
搜狐Pv insight(py)技术交流
Ad

More from moonbingbing (7)

PDF
Building tech community in china
PPT
快速搭建高性能服务端
PDF
淘宝钓鱼
PPT
中小互联网公司服务端优化实践
PDF
Wenming
PDF
mercury
PPT
MySQL调优
Building tech community in china
快速搭建高性能服务端
淘宝钓鱼
中小互联网公司服务端优化实践
Wenming
mercury
MySQL调优
Ad

Python和web开发