From 2270ed7f721c6fc6ab92dc0f934cacad6b37ac1e Mon Sep 17 00:00:00 2001 From: limil Date: Mon, 28 Oct 2024 20:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 79e6f1e..02ae5b1 100644 --- a/main.py +++ b/main.py @@ -81,11 +81,10 @@ class PikpakConsole(cmd2.Cmd): return await asyncio.wrap_future(future) async def aoutput(self, output): - return "" - # async def PrintOuput(output): - # print(output) - # future = asyncio.run_coroutine_threadsafe(PrintOuput(output), self.ioLoop) - # await asyncio.wrap_future(future) + async def PrintOuput(output): + print(output) + future = asyncio.run_coroutine_threadsafe(PrintOuput(output), self.ioLoop) + await asyncio.wrap_future(future) async def Run(self): # 1. 设置忽略SIGINT