Python's Archiver

為方便港臺同胞閱覽,Python中國特別推出簡繁體內容轉換功能

blackball 发表于 2008-11-18 10:54

8.12.5 Attributes 接口

8.12.5 Attributes 接口

Attributes对象实现了一部分映射协议,包括copy(),get(),had_key(),items(),keys()
还有values()方法。另外还提供了一下的方法:

getLength()
   返回属性的数量

getNames()
   返回属性的名字
   
getType(name)
   返回名为name的属性的类型,类型一般是'CDATA'.

getValue(name)
   返回名为name的属性的值


[url=http://bugway.cn]BlackBal[/url]l翻译,拙劣之处请不吝赐教。E-mail: [email]bugway@gmail.com[/email]

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.