await asyncio.sleep(1) print('world') ... task = asyncio.create_task(main()) ... lock = asyncio.Lock() #程式會等到鎖被釋放才進入該區塊
確定! 回上一頁