⇤ ← Revision 1 as of 2004-08-16 00:15:40
Size: 456
Comment:
|
Size: 1124
Comment: 应用 Elements and Element Trees
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
* 040816 19:50 尝试 {{{ #!python # -*- coding: utf-8 -*- # file OtterTools.py # """Otter Tools main script |
|
Line 15: | Line 22: |
@version: 0.1a @author: U{Zoom.Quiet<mailto:[email protected]>} @see: http://wiki.woodpecker.org.cn/moin.cgi/Otter_2fOtterTool """ import sys,string from elementtree import ElementTree if __name__ == '__main__': # this way the module can be """ 应用 Elements and Element Trees 来通过XPath 迅速理解XML """ file = open("uss.xml", "r") weblog = ElementTree.parse('uss.xml').getroot() commands = weblog.findall('.//Command') for node in commands: print node.attrib["CommandID"] }}} |
Otter 核心开发日志
-- Zoom.Quiet [DateTime(2004-08-16T00:15:40Z)] TableOfContents
开发节点
简述各个时期的开发重心
040816 XSD
- XML schema 确认,
- 个人开始寻找,XML 解析,代码模板解析方式
- 040816 19:50 尝试
1 # -*- coding: utf-8 -*-
2 # file OtterTools.py
3 #
4 """Otter Tools main script
5
6 @version: 0.1a
7 @author: U{Zoom.Quiet<mailto:[email protected]>}
8 @see: http://wiki.woodpecker.org.cn/moin.cgi/Otter_2fOtterTool
9 """
10 import sys,string
11 from elementtree import ElementTree
12 if __name__ == '__main__': # this way the module can be
13 """
14 应用 Elements and Element Trees 来通过XPath 迅速理解XML
15 """
16 file = open("uss.xml", "r")
17 weblog = ElementTree.parse('uss.xml').getroot()
18 commands = weblog.findall('.//Command')
19 for node in commands:
20 print node.attrib["CommandID"]
040815 开始
- QQ+Msn 与HD 讨论,明白Otter 的开发目标,方式
最小特性开发,保证每一细小的特性KO先!
- 每日保持就感!