QuykHtml
python库,可让您快速轻松地生成HTML模板,甚至创建完整的网站。
主要特点: ----- -
示例:4行中的Hello World
# Import the class from the library
from QuykHtml import qhtml
# Instantiate class
q = qhtml ()
# Insert a modified p element into our main display
q . display . insert ( q . new ( 'p' ). set_text ( 'Hello World' ). set_id ( 'text-id' ). style . set ( 'font-size:24px;' ))
# Render the page
q . display . render ()
示例:基本声明
from QuykHtml import qhtml
# Instantiate class
q = qhtml ()
# Create a div
div = q . new ( "div"