1. 首页
  2. 数据库
  3. 其它
  4. RuntimeError: Cannot run the event loop while another loop is running(目前没有解决)

RuntimeError: Cannot run the event loop while another loop is running(目前没有解决)

上传者: 2020-12-31 04:27:16上传 PDF文件 22.71KB 热度 31次
代码如下: import tornado.ioloop import tornado.web from tornado.httpclient import HTTPClient, AsyncHTTPClient class MainHandler(tornado.web.RequestHandler): # 同步 def get(self): h_c = HTTPClient() res = h_c.fetch("http://www.baidu.com") # print(res) # pass
下载地址
用户评论