<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <!--<meta http-equiv="refresh" content="2"--> <title>Title</title> </head> <body> <!--<a href="http://www.baidu.com">百     <>度</a> p br h1 span四个标签 <p></p> 为段落标签,段前后有间距,<br />为换行标签,是自闭类型,可以不加 斜杠。<h1></h1>为标题标签,1、2、3、4、5字体逐步缩小。<div></div>为块标签。这四个标签都属于块级标签 行内标签:<span></span>为行内的标签,不自动换行,是一个白板标签。 <p>abc1234sdfsdfsdfsdfsd<br>fsdfsdfsdfsdfsf</p> <h1>标题字段1 最大,属于块级标签</h1> <span></span>--> <div id="d1"> <form enctype="multipart/form-data" action="http://192.168.1.105:9999/index" method="post"> <input type="text" name="user" value="用户名"/> <input type="password" name="pwd"/> <input type="button" value="普通按钮"/> <p>请选择你的班级:</p> 一、<input type="radio" name="ss" value="1" checked="checked"/>   二、<input type="radio" name="ss" value="2"/>   三、<input type="radio" name="ss" value="3"/>   四、<input type="radio" name="ss" value="4"/>   五、<input type="radio" name="ss" value="5"/>   <p>请选择你的爱好:</p> 游泳<input type="checkbox" name="ms" value="游泳"/> 跑步<input type="checkbox" name="ms" value="跑步"checked="checked"/> 跳高<input type="checkbox" name="" value="跳高"/> <input type="file" name="f1" /> <br/> <input type="submit" value="提交数据"/> <input type="reset" value="重置"/> </form> </div> </body> </html>
import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def post(self): self.write("post") application = tornado.web.Application([ (r"/index", MainHandler), ]) if __name__ == "__main__": application.listen(9999) tornado.ioloop.IOLoop.instance().start()