添加勋章

This commit is contained in:
John Smith
2019-06-20 20:03:07 +08:00
parent fe598369b7
commit ef4c0daede
16 changed files with 297 additions and 111 deletions

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import argparse
import webbrowser
import logging
import os
@@ -46,6 +47,8 @@ def main():
)
app.listen(args.port, args.host)
logger.info('服务器启动:%s:%d', args.host, args.port)
url = 'http://localhost' if args.port == 80 else f'http://localhost:{args.port}'
webbrowser.open(url)
tornado.ioloop.IOLoop.current().start()