manage.bak.py 文件源码

python
阅读 15 收藏 0 点赞 0 评论 0

项目:vote-site 作者: wangande 项目源码 文件源码
def main():
    options.log_to_stderr = True
    options.logging = 'info'
    tornado.options.parse_command_line()
    # ??http server????
    http_server = tornado.httpserver.HTTPServer(Application())
    http_server.listen(options.port)
    # ?????
    tornado.locale.set_default_locale("zh_CN")
    tornado.locale.load_translations(
        os.path.join(os.path.dirname(__file__), "translations")
    )
    # ??ioloop
    tornado.ioloop.IOLoop.instance().start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号