![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug
Perror_one
无呜呜呜
展开
-
aiohttp,asyncio, RunTimeError
首先,你得到的AssertionError: There is no current event loop in thread ‘Thread-1’.是因为asyncio程序中的每个线程都有自己的事件循环,但它只会在主线程中为你自动创建一个事件循环。所以如果你asyncio.get_event_loop在主线程中调用一次,它将自动创建一个循环对象并将其设置为默认值,但是如果你在一个子线程中再次调用它原创 2017-07-13 11:04:10 · 3339 阅读 · 1 评论 -
后端传给前端int 类型数据自增或自减
由于我使用的python3 ,在python中int 类型不像其他语言的int类型, python 将long类型也加入到了int中, 所以再python中能够正确显示的int类型在其他的语言中不一定能够正确的显示, 当python 传的int 超过了浏览器所能解析的最大值时就会出现这种情况, 建议将较大的int 类型转换成string 在传给前端。...原创 2018-03-16 19:53:35 · 1601 阅读 · 0 评论