摘要: Answer to QuestionsWhy do we need XML parser?We need XML parser because we do not want to do everything in our application from scratch, and we need some "helper" programs or libraries to do something very low-level but very necessary to us. These low-level but necessary things include che 阅读全文
posted @ 2012-08-15 22:28 苍术厚朴 阅读(339) 评论(0) 推荐(0) 编辑
摘要: JSON格式:http://www.json.org/python和JSON的关系请参考:http://docs.python.org/library/json.html JSON建构有两种结构: 1.“名称/值”对的集合(Acollectionofname/valuepairs)。不同的语言中,它被理解为对象(object),记录(record),结构(struct),字典(dictionary),哈希表(hashtable),有键列表(keyedlist),或者关联数组(associativearray)。 2.值的有序列表(Anorderedlistofvalues)。在大部分语言... 阅读全文
posted @ 2012-08-15 22:02 苍术厚朴 阅读(52524) 评论(6) 推荐(11) 编辑
摘要: Ajax的jquery的api和例子参考:http://api.jquery.com/jQuery.ajax/15.1. Scripting LanguagesSo far, pretty much everything we have done has been server-based. However, client-based code - client-side scripting is an alternative that can be used instead of, or (more commonly) as well as server side code.There ar 阅读全文
posted @ 2012-08-15 21:54 苍术厚朴 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: jQuery API Documentation详细的API和例子说明,请参考文档:http://docs.jquery.com/Main_Page百度百科的解析:http://baike.baidu.com/view/1020297.htmCore$( expr , context )This function accepts a string containing a CSS or basic XPath selector which is then used to match a set of elements.The core functionality of jQuery cente 阅读全文
posted @ 2012-08-15 21:37 苍术厚朴 阅读(1591) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*-from __future__ import with_statementimport ostry: import unittest2 as unittestexcept ImportError: import unittestimport time from splinter import Browserfrom random import randint class DbackupTestCase(unittest.TestCase): # support 2.7,but not support 2.6.all the testca... 阅读全文
posted @ 2012-08-15 18:26 苍术厚朴 阅读(1583) 评论(0) 推荐(1) 编辑