«python-3.5» 태그된 질문

2015 년 9 월 13 일에 릴리스 된 Python 프로그래밍 언어 버전입니다. Python 3.5에만 해당하는 문제의 경우. 가능하면보다 일반적인 [python] 및 [python-3.x] 태그를 사용하십시오.

4
asyncio.ensure_future 대 BaseEventLoop.create_task 대 단순 코 루틴?
asyncio에 대한 몇 가지 기본 Python 3.5 자습서가 다양한 방식으로 동일한 작업을 수행하는 것을 보았습니다. 이 코드에서 : import asyncio async def doit(i): print("Start %d" % i) await asyncio.sleep(3) print("End %d" % i) return i if __name__ == '__main__': loop = asyncio.get_event_loop() #futures = [asyncio.ensure_future(doit(i), loop=loop) for i in range(10)] …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.