Python 筆記
  • Introduction
  • Installation
  • 版本管理
  • 核心模組
    • Async await
    • Socket
Powered by GitBook
On this page

Was this helpful?

  1. 核心模組

Async await

import asyncio

async def main():
    print('Hello ...')
    await asyncio.sleep(5)
    print('... World!')

asyncio.run(main())
Previous核心模組NextSocket

Last updated 4 years ago

Was this helpful?