易截截图软件、单文件、免安装、纯绿色、仅160KB

Install Python + Eric IDE


Install Python Eric IDE
1 Download following things
 
1) Python3.1
 
2) PyQt for python 3.1
(http://www.riverbankcomputing.co.uk/software/pyqt/download) I am using
PyQt-Py3.1-gpl-4.7.3-2.exe
 
3) Eric5 IDE
(http://eric-ide.python-projects.org/eric-download.html)
 
2 Install python3.1
 
3 Install PyQt
 
4 Extract eric5 zip and run install.py, it will generate more file in
the eric5 folder, run eric4.bat to start eric5 IDE
 
5 The first time you run eric, configuration window will popup.
 
1) select "APIs" node,
select "Compile APIs automatically", select "python" in the
"language" list, click "Add from installed APIs", and then
select "eric5.api", and then click "Compile APIs", click "Apply"
finally.
 
 
2) select
"Autocompletion" node, select "Autocompletion Enabled",
"Case sensitive" and "Replace word"
 
 
3) select "Autocompletion
> QScintilla" node, select "from Document and API files"
 
 
4) click "OK"
 
6 Restart Eric 5 IDE


相关文档:

windows & python & Emacs


设置Emacs的HOME,可以在scratch buffer中输入:(insert (getenv "HOME"))查看
下载python-mode.el
用Emacs打开python-mode.el然后M-x byte-compile-file编译python-mode.el为elc
C-h v查看load-path变量
在HOME/.emacs.d/init.el中添加(setq load-path (cons "D:\\emacs-23.1-bin-i386" load-path))
将py文件与pytho ......

如何运行Python脚本

假设你你的操作系统是WinXP:

开始菜单-> 运行-> cmd

然后就可以敲命令了。

如果你用IDLE,可以用IDLE打开这个.py文件,然后在菜单 "Run "下有一项 "Run   Module ",点击即可。 ......

使用python获取html页面的内容

import urllib
from HTMLParser import HTMLParser
class TitleParser(HTMLParser):
def __init__(self):
self.title = ''
self.divcontent = ''
self.readingtitle = 0
self.readingdiv = 0
HTMLParser.__init__(self)
def handle_starttag(self, tag, attrs): ......

Linux下python lxml模块的安装

需要先安装libxml2-devel libxslt-devel这两个rpm包,如果使用非root用户安装,可以下载libxml2和libxslt的源代码进行安装。 libxml2-devel、libxslt-devel装好后,解压lxml的包,切换到这个包的路径。
加入CFLAGS进行编译和安装,在shell下依次输入如下命令: CFLAGS=-I/usr/include/libxml2:/usr/include/libxslt/ ......

编译了windows下的python3连接Mysql的库mypysql


编译了一个windows下的python3连接Mysql的库
mypysql
版本是 0.5.1 ,根据官方的修改日志,这个版本修改了0.5中一个内存泄漏问题。
源代码和编译后的文件为:
http://211.147.215.55/down/mypysql-0.5.1-win.zip
mypysql的官方地址 https://sourceforge.net/projects/mypysql/
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号