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

  • 相关阅读:
    django xadmin后台集成DjangoUeditor
    vm虚拟机下的ubuntu16.04配置静态ip(NAT方式)
    关于mysql里的concat
    xml转换为数组格式
    关于json的中文转码问题
    判断是否是微信浏览器
    数组和xml的互相转换的封装函数
    关于微信登录的接口开发
    curl的封装类
    php里关于文件下载的方法(两种)
  • 原文地址:https://www.cnblogs.com/kuihua/p/5452500.html
Copyright © 2011-2022 走看看