10 2010 档案
摘要: python logging模块介绍简介-Python文档 从Python2.3版本中开始引入的logging模块为应用提供了灵活的日志系统。logging的行为依靠调用 Logger 类的方法来实现,实例一般叫做logger。每个实例都拥有自己的名字,并且可以通过点来分割具备层次的名字。例如,一个logger叫做”scan”是一个叫做”scan.text...阅读全文
摘要: 1.从硬件地址和时间生成3.从md5算法生成4.随机生成5.从SHA-1算法生成在uuid模块里对应uuid1, uuid3, uuid4, uuid5这几个方法,注意没有uuid2。下面是示例: #-*-encoding:gb2312-*-importuuidprintuuid.uuid1()printuuid.uuid3(uuid.NAMESPACE_DNS,'testme')printuui...阅读全文
摘要: 水平滚动:<marquee direction="left" align="bottom" height="25" width="100%" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" scrolldelay="1">水平滚动字幕内容</marquee>垂直滚动:<marqu...阅读全文
摘要: 1、获取Karrigell程序:<http://karrigell.sourceforge.net/>2、解压、安装:进入解压后的目录,执行命令<nohup python Karrigell.py -P 8080 &>#一个命令,你的Python Web Server就做为服务在后台运行了,人性化而且很奇妙。3、配置:整个Karrigell就一个配置文件,该目录下的...阅读全文
摘要: [Info]DriveType=5ImagePath=L:Volume=MCollec.39Serial=723840260FAT=CDFSDiskSize=676020224DiskFree=0[Comment]0= South Park(南方公园)1= 可儿乐队精选The Corrs Greathits2= 林忆莲3= 瘐澄庆《哈林天堂》Harlem'm4=Heaven[L:][L:\Sout...阅读全文
摘要: 编写你的第一个Django应用(译自Django文档)转自http://blog.sina.com.cn/s/blog_49a9635801000agu.htmlhttp://www.ibm.com/developerworks/cn/linux/l-django/内容:创建一个工程(project)开发服务器数据库配置 创建模型(models)激活模型(models)Django API 演示 ...阅读全文
