HTML和SVG模块,用于为山梨大学TAC101创建讲义。
joho的Python项目详细描述
说明:
- HTML和SVG模块为TAC101创建讲义 在山梨大学。
- 输出文件:html。
示例:
#!python ## -*- coding: utf-8 -*- import joho as j # create html output file and # load the default web browser to open the file j.title("Topic 12: Python: HTML SGV ") j.insert_horizontal_line() j.heading2("パイソンによる HTML") j.write("Hello world") j.heading2("パイソンによる図形、アニメションの作成") Face = j.line(0, 0, 100, 100) +\ j.circle(100, 100, 50, fillcolor="none") + \ j.polygon([200, 400, 400],[100,100,300]) j.draw(Face + j.grid(100)) j.MakeTableContent() j.show()
安装
pip install joho