我正在使用库(websockets-7.0)创建2000个连接,以连接到Python3.6中的websocket服务器。内存正在急剧增加。下面是我的代码: awaittest2(i) for i in range(2000) ))
asyncio.get_event_loop().run_until_complete(test())
我想在方案中做以下模式: if N > 0:else:
do-function() 目前我把它模拟成这样的东西: (if (> N 0) pass??(do-function)) 什么才是做pass、continue、return、;或其他什么都合适的方法--在方案中“什么都不做”,但把它作为一个占位符保留下来,这样我就知道它是故意的(而不是把if改成