摘要: 简介Element类型是一种灵活的容器对象,用于在内存中存储结构化数据。[注意]xml.etree.ElementTree模块在应对恶意结构数据时显得并不安全。每个element对象都具有以下属性: 1. tag:string对象,表示数据代表的种类。 2. attrib:dictionary对... 阅读全文
posted @ 2013-04-12 19:52 iFantasticMe 阅读(38321) 评论(1) 推荐(2) 编辑
摘要: 在 Bottle 框架中,使用 route 修饰符将请求路由到与之对应的响应方法。这种特性非常适合路由请求与方法,但却给在 Bottle 中使用类来创建应用带了麻烦。 class SanYou: app = Bottle() @app.route('/') ... 阅读全文
posted @ 2013-04-12 03:21 iFantasticMe 阅读(711) 评论(0) 推荐(0) 编辑