I have following code:
application = tornado.web.Application([
(r"/get(.*)", GetHandler),
])
class GetHandler(tornado.web.RequestHandler):
def get(self, key):
response = {'key': key}
self.write(response)
当我访问
localhost:端口号/get?key=python
时,我收到了空的键值 {'key': ''}
。这里出了什么问题?