【Python开发web】(1) -- 系统环境与框架的选择

本文介绍了Python语言的特点及优势,并对比了多种Python Web框架,最终选择了Pylons作为开发工具。文中还列举了不同场景下适合使用的框架,并提供了多个相关链接供进一步学习。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

学了多种语言,今天起把目标瞄向了Python和Perl。先从Python开始。

-------------------------------------------我是pangpang分隔线------------------------------------------

官网上对Python的定义:

 

Python is a great object-oriented, interpreted, and interactive programming language. It is often compared (favorably of course  ) to Lisp, Tcl, Perl, Ruby, C#, Visual Basic, Visual Fox Pro, Scheme or Java... and it's much more fun.

 

Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems. New built-in modules are easily written in C or C++ (or other languages, depending on the chosen implementation). Python is also usable as an extension language for applications written in other languages that need easy-to-use scripting or automation interfaces.

-------------------------------------------我是pangpang分隔线------------------------------------------

已搭建的系统环境:(2009-3-19更新)

CentOS 5.2 kernel 2.6.18

Python 2.6.1

Pylons 0.9.7

 

-------------------------------------------我是pangpang分隔线------------------------------------------

Python的流行框架有很多,纳入考虑范围的有django、pylons、web2py,另外,因豆瓣网而关注quixote。

 

排序原则

平台

有大把時間做企業級應用

plone,zope

適合 python 專家用

pylons, webpy, twisted.web, zope

追求一體框架

django, zope/plone, karingel

適合快速上手

karingel, cherrypy. turbogears

快速 CMS

django

支援度

django, turbogears, pylons, zope/plone

框架自由度

pylons, turbogears

一般用途

django, turbogears, pylons

文檔優勢

django, turbogears, pylons

有 Rails 背景

pylons, turbogears

有 AJAX/javascript helper/widgets

turbogears/pylons

WSGI 支持度

pylons, turbogears(django努力中)

JSON(AJAX server side)

turbogears

並用 flash/flex

turbogears

摘自:http://wiki.woodpecker.org.cn/moin/PyWebAppFrameworks

在比较后,决定使用pylons。

-------------------------------------------我是pangpang分隔线------------------------------------------

相关链接:

Python  http://www.python.org/

Python wiki  http://wiki.python.org/moin/FrontPage

Python Tutorial  http://docs.python.org/tutorial/index.html

Learn Python in 10 minutes http://www.poromenos.org/tutorials/python

pylons  0.9.7  http://www.pylonshq.com

django  1.0.2  http://www.djangoproject.com/

web2py  1.5.7  http://mdp.cti.depaul.edu/

quixote  2.6  http://quixote.ca/

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值