📄 postgresql-howto-17.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <META NAME="GENERATOR" CONTENT="ZH-SGML-Tools 1.0.9"> <TITLE> Linux 的 Database-SQL-RDBMS HOW-TO 文件 (PostgreSQL 物件关联资料库系统): PostgreSQL 的 Python 介面</TITLE> <LINK HREF="PostgreSQL-HOWTO-18.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-18.html" REL=next> <LINK HREF="PostgreSQL-HOWTO-16.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-16.html" REL=previous> <LINK HREF="PostgreSQL-HOWTO.html#toc17" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO.html#toc17" REL=contents><SCRIPT src="menu.js"> function BeginPage() {} function EndPage() {} </SCRIPT> </HEAD> <BODY bgcolor=#FFFFFF MARGINHEIGHT=0 MARGINWIDTH=0> <A HREF="PostgreSQL-HOWTO-18.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-18.html"><IMG SRC="next.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/next.gif" ALT="Next"></A><A HREF="PostgreSQL-HOWTO-16.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-16.html"><IMG SRC="prev.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/prev.gif" ALT="Previous"></A><A HREF="PostgreSQL-HOWTO.html#toc17" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO.html#toc17"><IMG SRC="toc.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/toc.gif" ALT="Contents"></A><HR><H2><A NAME="s17">17. PostgreSQL 的 Python 界面</A></H2><P>Python 是一个直译的物件导向命令稿语言。它使用简易(轻巧的语法、简单直接的句子),有很多用于建立 GUI 的延伸、万维网界面等等。一个有智慧的浏览器(类似 HotJava)正在开发中(一九九五年十一月),这会给予程序设计员很多机会。Python 的版权持有人为荷兰阿姆斯特丹的 Stichting S Mathematisch Centrum,可自由散布。它包括物件、类别 (classes)、模块、和例外 (exceptions) 的动态载入。使用 C 语言来将其界面加入新系统函式库是直接的工作,使 Python 在自行设定时容易使用。Python 是一个拥有 X 界面的高等命令稿语言。在 Linux 光碟中的 Python 套件包括大部分标准 Python模块,以及用作 Tk 界面的 Tix widget 模块。<P>PyGreSQL 是一个用作 PostgreSQL 资料库的界面。它嵌入了 PostgreSQL 查询函式库,使得在 Python 手稿中使用强劲的 PostgreSQL 特性十分简单。PyGreSQL 由 by D'Arcy J.M. Cain and Pascal Andre 写成。<UL><LI> PyGreSQL 的新网站 <A HREF="javascript:if(confirm('http://www.druid.net/pygresql/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.druid.net/pygresql/'" tppabs="http://www.druid.net/pygresql/">http://www.druid.net/pygresql/</A></LI><LI> D'Arcy 所维护的 <A HREF="javascript:if(confirm('http://www.druid.net/~darcy/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.druid.net/~darcy/'" tppabs="http://www.druid.net/~darcy/">http://www.druid.net/~darcy/</A></LI><LI> 旧网站在 <A HREF="javascript:if(confirm('ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95.README \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications. \n\nDo you want to open it from the server?'))window.location='ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95.README'" tppabs="ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95.README">ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95.README </A></LI><LI> D'Arcy J.M. Cain <A HREF="mailto:darcy@druid.net">darcy@druid.net</A></LI><LI> Pascal Andre <A HREF="mailto:andre@chimay.via.ecp.fr">andre@chimay.via.ecp.fr</A></LI><LI> Pascal Andre <A HREF="mailto:andre@via.ecp.fr">andre@via.ecp.fr</A></LI></UL><P><H2><A NAME="ss17.1">17.1 如何取得 PyGres?</A></H2><P>不同套件的主网站在∶<UL><LI> Python <A HREF="javascript:if(confirm('ftp://ftp.python.org/CLDP/gb/:/pub/www.python.org/1.5/python1.5b2.tar.gz \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications. \n\nDo you want to open it from the server?'))window.location='ftp://ftp.python.org/CLDP/gb/:/pub/www.python.org/1.5/python1.5b2.tar.gz'" tppabs="ftp://ftp.python.org/CLDP/gb/:/pub/www.python.org/1.5/python1.5b2.tar.gz">ftp://ftp.python.org:/pub/www.python.org/1.5/python1.5b2.tar.gz</A></LI><LI> PyGreSQL <A HREF="javascript:if(confirm('ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications. \n\nDo you want to open it from the server?'))window.location='ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz'" tppabs="ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz">ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz</A></LI><LI> 旧网站 <A HREF="javascript:if(confirm('ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95-1.0b.tar.gz \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications. \n\nDo you want to open it from the server?'))window.location='ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95-1.0b.tar.gz'" tppabs="ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95-1.0b.tar.gz">ftp://ftp.via.ecp.fr/pub/python/contrib/Database/PyGres95-1.0b.tar.gz </A></LI></UL>无论如何,你应尝试寻找最接近你的映射站台。请参阅资料来源来找这些站台。PygreSQL 也会在 Python 和 PostgreSQL 站台的 contrib 目录找到。<P><H2><A NAME="ss17.2">17.2 资料和支持</A></H2><P>如果你需要这些套件的资料,请查看以下网页∶<UL><LI> Python : <A HREF="javascript:if(confirm('http://www.python.org/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.python.org/'" tppabs="http://www.python.org/">http://www.python.org/</A></LI><LI> PostgreSQL : <A HREF="javascript:if(confirm('http://epoch.cs.berkeley.edu:8000/postgres95/index.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://epoch.cs.berkeley.edu:8000/postgres95/index.html'" tppabs="http://epoch.cs.berkeley.edu:8000/postgres95/index.html">http://epoch.cs.berkeley.edu:8000/postgres95/index.html</A></LI><LI> PyGreSQL <A HREF="javascript:if(confirm('ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications. \n\nDo you want to open it from the server?'))window.location='ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz'" tppabs="ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz">ftp://ftp.druid.net/pub/distrib/PyGreSQL-2.1.tgz</A></LI><LI> PyGreSQL 旧网站 : <A HREF="javascript:if(confirm('http://www.via.ecp.fr/via/products/pygres.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.via.ecp.fr/via/products/pygres.html'" tppabs="http://www.via.ecp.fr/via/products/pygres.html">http://www.via.ecp.fr/via/products/pygres.html</A></LI></UL><P>支持∶<UL><LI> PyGreSQL 的通信论坛。要参加的话,你可电邮至∶<A HREF="mailto:majordomo@vex.net">majordomo@vex.net</A>在正文中写“subscribe pygresql name@domain”,把“name@domain”改为你自己的电邮地址。</LI><LI> Python 的新闻组∶ newsgroup comp.lang.python</LI><LI> PyGreSQL : 如有臭□报告、意见、注释,请找 Andre<A HREF="mailto:andre@via.ecp.fr">andre@via.ecp.fr</A></LI></UL><HR><A HREF="PostgreSQL-HOWTO-18.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-18.html"><IMG SRC="next.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/next.gif" ALT="Next"></A><A HREF="PostgreSQL-HOWTO-16.html" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO-16.html"><IMG SRC="prev.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/prev.gif" ALT="Previous"></A><A HREF="PostgreSQL-HOWTO.html#toc17" tppabs="http://www.linux.org.tw/CLDP/gb/PostgreSQL-HOWTO.html#toc17"><IMG SRC="toc.gif" tppabs="http://www.linux.org.tw/CLDP/gb/img/toc.gif" ALT="Contents"></A> </BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -