这是我的代码:
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write(self.request.url)
def main():
settings = {"template_path": "html","static_path": "static"}
tornado.options.parse_command_line()
application = tornado.web.Application([
(r"/story/page1", MainHandler),
],**settings)
我想得到字符串“/story/page1”。如何 ?