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