
python
文章平均质量分 61
ganmao
一只到处乱窜的猫
展开
-
常用的python库
Tkinter———— Python默认的图形界面接口。 Tkinter是一个和Tk接口的Python模块,Tkinter库提供了对Tk API的接口,它属于Tcl/Tk的GUI工具组。Tcl/Tk是由John Ousterhout发展的书写和图形设备。Tcl(工具命令语言)是个宏语言,用于简化shell下复杂程序的开发,Tk工具包是和Tcl一起开发的,目的是为了简化用户接口的设计过程。Tk转载 2009-05-08 15:39:00 · 1096 阅读 · 0 评论 -
Python FTP例子
#!/usr/bin/env python.exe#coding=gbkfrom ftplib import FTPfrom os.path import basename, dirname, existsfrom os import stat, rename, removefrom time import localtime, strftimefrom sys imp原创 2009-05-15 22:22:00 · 3083 阅读 · 3 评论 -
一个使用sqlite3的脚本,包括attach到本地
import sqlite3class MySum: def __init__(self): self.count = 0 def step(self, value): self.count += value def finalize(self): return self.countcon = sqlite原创 2010-04-19 14:35:00 · 948 阅读 · 0 评论 -
logging模块使用
Log_FileName=z://alog.txtdef InitLog(): logger = logging.getLogger("Transform_Log") logger.setLevel(logging.DEBUG) fhdlr = logging.FileHandler(Log_FileName) fhdlr.setLe原创 2010-05-11 13:50:00 · 640 阅读 · 0 评论 -
telnetlib 中各种 read 函数的意义
telnetlib 中各种 read 函数的意义<br />Created: Fang lungang 07/06/2007 Modified: Fang lungang 07/09/2007 10:27><br />原作者:方伦钢<br />原地址:http://blog.chinaunix.net/u/23408/showart_336561.html缘起<br />最近想用 python 的 telnetlib 写个测试脚本。可是 telnetlib 里一堆的 read 函数, 又是 lazy 又是转载 2010-09-08 16:36:00 · 4017 阅读 · 0 评论 -
完整解决webpy框架在SAE上的文件方式保存session问题
1,解决官方sae样例代码中的误区#app = web.application(urls, globals()).wsgifunc()app = web.application(urls, globals())#application = sae.create_wsgi_app(app)application = sae.create_wsgi_app(app.wsgifunc())原创 2015-01-02 18:20:42 · 1258 阅读 · 0 评论