
Scripts
文章平均质量分 58
magic_dreamer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
DiveIntoPython(五)
DiveIntoPython(五)英文书地址:http://diveintopython.org/toc/index.htmlChapter 6.Exceptions and File Handling6.1. Handling ExceptionsLike many other programming languages, Python has exception h...2010-03-15 22:43:32 · 166 阅读 · 0 评论 -
DiveIntoPython(六)
DiveIntoPython(六)英文书地址:http://diveintopython.org/toc/index.htmlChapter 7. Regular Expressions7.1.Diving InStrings have methods for searching (index, find, and count), replacing (replace)...2010-03-15 22:47:27 · 129 阅读 · 0 评论 -
DiveIntoPython(七)
DiveIntoPython(七)英文书地址:http://diveintopython.org/toc/index.htmlChapter 8.HTML Processing8.1.Diving inexample 8.1.BaseHTMLProcessor.pyexample 8.2.dialect.pyHere is a complete, working...2010-03-15 22:49:02 · 204 阅读 · 0 评论 -
DiveIntoPython(八)
DiveIntoPython(八)英文书地址:http://diveintopython.org/toc/index.htmlChapter 9.XML Processing9.1.Diving inThere are two basic ways to work with XML. One is called SAX (“Simple API for XML”), a...2010-03-15 22:50:26 · 110 阅读 · 0 评论 -
DiveIntoPython(九)
DiveIntoPython(九)英文书地址:http://diveintopython.org/toc/index.htmlChapter 10.Scripts and Streams10.1.Abstracting input sourcesIn the simplest case, a file-like object is any object with a r...2010-03-15 22:55:41 · 108 阅读 · 0 评论 -
DiveIntoPython(十)
DiveIntoPython(十)英文书地址:http://diveintopython.org/toc/index.htmlChapter 11.HTTP Web Services11.1.Diving in If you want to get data from the server, use a straight HTTP GET; if you want to...2010-03-15 22:57:57 · 206 阅读 · 0 评论 -
DiveIntoPython(十一)
DiveIntoPython(十一)英文书地址:http://diveintopython.org/toc/index.htmlChapter 12.SOAP Web ServicesRather than dealing with HTTP requests and XML documents directly, SOAP allows you to simulate c...2010-03-15 22:59:01 · 142 阅读 · 0 评论 -
DiveIntoPython(十二)
DiveIntoPython(十二)英文书地址:http://diveintopython.org/toc/index.htmlChapter 13.Unit Testing13.1.Introduction to Roman numeralsroman.py13.2.Diving inPython has a framework for unit te...2010-03-21 20:19:12 · 121 阅读 · 0 评论 -
DiveIntoPython(十三)
DiveIntoPython(十三)英文书地址:http://diveintopython.org/toc/index.htmlChapter 14.Test-First Programming14.1.roman.py,stage 1example 14.1.roman1.py#Define exceptionsclass RomanError(Excep...2010-03-21 23:13:24 · 81 阅读 · 0 评论 -
DiveIntoPython(十四)
DiveIntoPython(十四)英文书地址:http://diveintopython.org/toc/index.htmlChapter 15.Refactoring15.1.Handling bugsexample 15.1.The bug>>> import roman5>>> roman5.fromRoman("")0>>> ...2010-03-21 23:14:14 · 114 阅读 · 0 评论 -
DiveIntoPython(十五)
DiveIntoPython(十五)英文书地址:http://diveintopython.org/toc/index.htmlChapter 16.Functional Progamming16.1.Diving inThe following is a complete Python program that acts as a cheap and simple...2010-03-21 23:14:47 · 169 阅读 · 0 评论 -
DiveIntoPython(十六)
DiveIntoPython(十六)英文书地址:http://diveintopython.org/toc/index.htmlChapter 17.Dynamic functions17.1.Diving inthe rules for making singular nouns into plural nouns are varied and complex....2010-03-21 23:15:35 · 126 阅读 · 0 评论 -
DiveIntoPython(十七)
DiveIntoPython(十七)英文书地址:http://diveintopython.org/toc/index.htmlChapter 18.Performance TuningPerformance tuning is a many-splendored thing. Just because Python is an interpreted language d...2010-03-21 23:16:21 · 150 阅读 · 0 评论 -
wxpython入门(一)环境搭建
wxpython入门(一)环境搭建网络上搜索了一下,结合我本机的环境。已经拥有eclipse---Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7java----java version "1.6.0_11"python--Python 2.6.4pydev----1.4.8.2881...2010-03-27 13:35:33 · 148 阅读 · 0 评论 -
PDFMiner读取pdf文件
PDFMiner读取pdf文件文档地址:http://www.unixuser.org/~euske/python/pdfminer/index.html下载得到文件:pdfminer-20100322.tar.gzuppack it. Run setup.py to install:E:\tools\python\pdfminer\pdfminer-20100...2010-03-27 14:14:19 · 316 阅读 · 0 评论 -
grails(一)环境搭建
grails(一)环境搭建1. 安装下载grails首页http://grails.org/下载页面http://www.grails.org/Download文件grails-bin-1.0.3.zip解开压缩得到grails-1.0.3文件夹,拷贝到tools下面在系统的配置上加上:GRAILS_HOME = D:\tool\grails-1...原创 2010-01-05 10:39:17 · 149 阅读 · 0 评论 -
grails(二)简单项目示例
grails(二)简单项目示例1.数据库配置配置文件 grails-app/conf/DataSource.groovyA typical configuration for MySQL may be something like:dataSource {pooled = truedbCreate = "update"url = "jdbc:mysql://loca...原创 2010-01-05 10:39:38 · 118 阅读 · 0 评论 -
使用groovy编写spring的controller(一)
使用groovy编写spring的controller(一)初步实现了使用groovy来替代spring的mvc controller的controller层,做到controller层的发布方便,随时能改。参考文档http://static.springsource.org/spring/docs/2.5.6/reference/dynamic-language.html...原创 2010-01-05 10:40:03 · 1099 阅读 · 0 评论 -
使用groovy编写spring的controller(二)
使用groovy编写spring的controller(二)3、文件清单web.xml文件: contextConfigLocation classpath*:applicationContext.xml org.springframework.web.context.ContextLoaderListener sccl...原创 2010-01-05 10:40:23 · 490 阅读 · 0 评论 -
groovy编写spring的controller(三)支持annotation
groovy编写spring的controller(三)支持annotation自定义扩展spring,让groovy编写的controller支持annotation,参考了比较老的spring论坛上的帖子,当然自己也做了修改。因为帖子的时间比较久远,不晓得新版本的spring是不是早就支持了。不过还是记录一下。参考文章http://forum.springsource.or...原创 2010-01-05 10:40:47 · 316 阅读 · 0 评论 -
groovy编写spring的controller(四)支持annotation
groovy编写spring的controller(四)支持annotation前面已经准备好了groovyplugin-1.0.jar了,那么接着就应该在easygroovy这个项目中使用这个pom.xml中引入的JAR包,这里列个清单org.springframeworkspring2.5.6org.springframeworkspring-web...原创 2010-01-05 10:41:09 · 232 阅读 · 0 评论 -
python入门(一)编译器安装和使用
python入门(一)编译器安装和使用1.软件安装首页http://www.python.org下载得到文件python-3.1.1.msi在WINDOWS XP上双击安装安装好后,打开python(command line):输入print("hello world!")这就是写的第一个程序:)2.安装eclipse插件参考日志...原创 2010-01-05 10:41:32 · 568 阅读 · 0 评论 -
NETBEANS开发ROR
访问该网站下载netbeans工具只用下载支持ruby的就可以了http://www.netbeans.org/然后参考该文章一步一步操作,可以做好一个CRUD的DEMOhttp://blogs.sun.com/divas/entry/creating_a_rails_2_0...原创 2010-01-05 23:34:24 · 102 阅读 · 0 评论 -
Eclipse的ROR环境
ROR的Eclipse环境下载easyEclipse for ruby on rails的地址:http://www.easyeclipse.org/site/distributions/ruby-rails.htmleclipse插件的地址:http://www.aptana.com/rails/rails使用地址:http://rubyonrails.org...原创 2010-01-06 09:49:05 · 116 阅读 · 0 评论 -
python入门(二)简明语法学习
python入门(二)简明语法学习参考书籍 python_note_pdq.pdf3.1 函数函数type 显示值和变量的类型name=type("test")print(name)结果显示 函数id 返回整数,表示值或变量的唯一标示符。变量的id就是它指向值的idprint(id(123))number = 123print(id(number...原创 2010-01-13 10:39:51 · 132 阅读 · 0 评论 -
python入门(三)条件表达式
python入门(三)条件表达式参考书籍 python_note_pdq.pdf4.1 布尔表达式真值为1,假值为04.2 逻辑操作符and or nota = 1b = 0print(a and b) ---------- 0print(a or b) ---------- 1print(not a) ----------- Fals...原创 2010-01-13 10:46:33 · 265 阅读 · 0 评论 -
python入门(四)字符串和列表值
python入门(四)字符串和列表值参考书籍 python_note_pdq.pdf5.1 组合数据类型name = "123456"print(name[0]) ------1print(name[5]) -------6print(name[len(name) - 1])--65.2 fo...原创 2010-01-14 09:24:54 · 138 阅读 · 0 评论 -
python入门(五)序列和字典
python入门(五)序列和字典参考书籍 python_note_pdq.pdf7.1 序列letters = (1,)print(letters,":",type(letters))letters = (1)print(letters,":",type(letters))letters = (1,2,3,4,5,6)print(letters,":",type...原创 2010-01-14 09:38:47 · 159 阅读 · 0 评论 -
python入门(六)文件和异常
python入门(六)文件和异常参考书籍 python_note_pdq.pdf9.1 文件的打开和关闭python2和python3文件的差别比较大,参考了这个BLOGhttp://diveintopython3.org/files.htmldef copyFile(oldFile, newFile): f1 = open(oldFile, mode = "r",...原创 2010-01-15 10:21:28 · 202 阅读 · 0 评论 -
python入门(七)类与对象和类与方法
python入门(七)类与对象和类与方法参考书籍 python_note_pdq.pdf11.1 用户定义数据类型class Point: passa = Point()print(a,type(a))控制台打印: 定义了一个自定义的类Point,pass表示暂时没有内容,下面的a就在使用这个类型了。11.2 属性class Point...原创 2010-01-15 10:28:05 · 237 阅读 · 0 评论 -
python入门(八)操作符重定义和继承
python入门(八)操作符重定义和继承参考书籍 python_note_pdq.pdf13.1 加减法重定义Python的基本数据类型如整数、浮点数,能够进行数学运算。类可以吗?为了使类的实例也可以进行数学操作,我们需要在类的内部重新定义数学操作符,使之支持用户定义的数据类型。class RMB: def __init__(self,sum=0.0): ...原创 2010-01-15 10:38:18 · 1250 阅读 · 0 评论 -
django入门(一)安装和HelloWorld
django入门(一)安装和HelloWorld阅读别人的中文笔记http://www.woodpecker.org.cn/obp/django/django-stepbystep/newtest/doc/同时查看了官方网站,前段时间玩的python都是3.1版本,原来django只支持到2.x版本,所以我卸载了python3.1,重新安装了python2.6.4版本。...原创 2010-01-18 11:34:11 · 107 阅读 · 0 评论 -
django入门(二)POST、TEMPLATE和CVS示例
django入门(二)POST、TEMPLATE和CVS示例阅读别人的中文笔记http://www.woodpecker.org.cn/obp/django/django-stepbystep/newtest/doc/step by step(二)1 创建文件Add.py# -*- coding: UTF-8 -*-'''Created on 2010-1-18...原创 2010-01-18 13:41:37 · 177 阅读 · 0 评论 -
wxpython入门(二)基本窗体事件了解
wxpython入门(二)基本窗体事件了解参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第一章 欢迎使用wxPython开始wxPython1.创建最小的空的wxPython#coding=utf-8'''Created on 2010-3-27@author: sillycat'''...2010-04-19 21:45:58 · 369 阅读 · 0 评论 -
wxpython入门(三)重构、类
wxpython入门(三)重构、类参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第四章 用PyCrust使得wxPython更易处理如何与wxPython程序交互例4.1 简单的Python交互式会话C:\Documents and Settings\sillycat>pythonActiveP...2010-04-19 21:57:22 · 197 阅读 · 0 评论 -
wxpython入门(四)基础构建
wxpython入门(四)基础构建参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第六章 使用基本的建造部件暂时略过第七章 使用基本的控件工作显示文本wx.StaticText,examples:import wxclass StaticTextFrame(wx.Frame): de...2010-04-19 22:07:09 · 114 阅读 · 0 评论 -
wxpython入门(五)窗体和对话框
wxpython入门(五)窗体和对话框参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第八章 将构建放入窗体中wx.Frame框架和panel 面板一个简单的框架,examples:import wxif __name__ == '__main__': app = wx.PySimp...2010-04-19 22:08:46 · 383 阅读 · 0 评论 -
wxpython入门(六)菜单项
wxpython入门(六)菜单项参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第十章 创建和使用wxPython菜单创建菜单如何创建一个菜单栏wx.MenuBar构造函数:wx.MenuBar()一旦菜单栏被创建了,使用SetMenuBar()方法将它附加给一个wx.Frame(或其子类...2010-04-19 22:10:10 · 229 阅读 · 0 评论 -
wxpython入门(七)sizer布局和图像处理
wxpython入门(七)sizer布局和图像处理参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第十一章 使用sizer放置窗口部件sizer是一个对象,它唯一的目的就是管理容器中的窗口部件的布局。sizer本身不是一个容器或一个窗口部件。它只是一个屏幕布局的算法。所有的sizer都是抽象类wx.Sizer的一...2010-04-19 22:11:40 · 632 阅读 · 0 评论 -
wxpython入门(八)列表和树形
wxpython入门(八)列表和树形参考书籍http://wiki.woodpecker.org.cn/moin/WxPythonInAction第十三章 列表控件和管理列表项略第十四章 网格控件wx.grid.Grid的构造函数:wx.grid.Grid(parent, id, pos=wx.DefaultPosition,size=wx.DefaultS...2010-04-19 22:12:48 · 696 阅读 · 0 评论