zoukankan      html  css  js  c++  java
  • robot API笔记4

    robot.htmldata包

    包编写HTML格式的输出文件。

    这个包被认为是稳定的但不是公共API的一部分。

    robot.htmldata.htmlfilewriter module

    classrobot.htmldata.htmlfilewriter.HtmlFileWriter(outputmodel_writer)

    语法: object

    write(template)
    classrobot.htmldata.htmlfilewriter.ModelWriter

    语法: robot.htmldata.htmlfilewriter._Writer

    handles(line)
    write(line)
    classrobot.htmldata.htmlfilewriter.LineWriter(output)

    语法: robot.htmldata.htmlfilewriter._Writer

    handles(line)
    write(line)
    classrobot.htmldata.htmlfilewriter.GeneratorWriter(html_writer)

    语法: robot.htmldata.htmlfilewriter._Writer

    write(line)
    handles(line)
    classrobot.htmldata.htmlfilewriter.JsFileWriter(html_writerbase_dir)

    语法: robot.htmldata.htmlfilewriter._InliningWriter

    write(line)
    handles(line)
    classrobot.htmldata.htmlfilewriter.CssFileWriter(html_writerbase_dir)

    语法: robot.htmldata.htmlfilewriter._InliningWriter

    write(line)
    handles(line)

    robot.htmldata.jartemplate module

    classrobot.htmldata.jartemplate.HtmlTemplate(filename)

    语法: object

    robot.htmldata.jsonwriter module

    classrobot.htmldata.jsonwriter.JsonWriter(outputseparator='')

    语法: object

    write_json(prefixdatapostfix='; 'mapping=Noneseparator=True)
    write(stringpostfix='; 'separator=True)
    classrobot.htmldata.jsonwriter.JsonDumper(output)

    语法: object

    dump(datamapping=None)
    write(data)
    classrobot.htmldata.jsonwriter.StringDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    dump(datamapping)
    handles(datamapping)
    classrobot.htmldata.jsonwriter.IntegerDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    dump(datamapping)
    handles(datamapping)
    classrobot.htmldata.jsonwriter.DictDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    dump(datamapping)
    handles(datamapping)
    classrobot.htmldata.jsonwriter.TupleListDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    dump(datamapping)
    handles(datamapping)
    classrobot.htmldata.jsonwriter.MappingDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    handles(datamapping)
    dump(datamapping)
    classrobot.htmldata.jsonwriter.NoneDumper(jsondumper)

    语法: robot.htmldata.jsonwriter._Dumper

    handles(datamapping)
    dump(datamapping)

    robot.htmldata.normaltemplate module

    classrobot.htmldata.normaltemplate.HtmlTemplate(filename)

    语法: object

    robot.htmldata.template module

  • 相关阅读:
    [Dynamic Language] Python Django: 模板引擎(3)模板标签和过滤器
    [Linux] Ubuntu: 登陆界面无法输入密码
    [Dynamic Language] Python Exec & Compile
    [Dynamic Language] Python: 类基本结构和继承
    [Linux] VIM 代码折叠
    [Database] MongoDB (2) 高级查询条件操作符
    [Dynamic Language] Python: unindent does not match any outer indentation level
    [Linux] VMware 配置linux后出现提示:Failed to initialize remote display subsystem
    [Database] Redis (2) redispy API Reference
    [Database] MongoDB (1) 基本连接、操作、查询
  • 原文地址:https://www.cnblogs.com/kuihua/p/5452500.html
Copyright © 2011-2022 走看看