def main():
app = webapp2.WSGIApplication([
('/connection', Connection),
('/shortest', ShortestPath),
('/neighbourhood', Neighbourhood)
], debug=False)
parser = argparse.ArgumentParser()
parser.add_argument('--listen',
help='host:port to listen on',
default='127.0.0.1:8081')
args = parser.parse_args()
host, port = args.listen.split(':')
httpserver.serve(
app,
host=host,
port=port)
评论列表
文章目录