瀏覽代碼

更正逻辑

myuan 2 年之前
父節點
當前提交
306c957b59
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      run_test.py

+ 1 - 1
run_test.py

@@ -27,7 +27,7 @@ async def on_modified(event):
         )
         )
 
 
         for t in ['stderr', 'stdout']:
         for t in ['stderr', 'stdout']:
-            content = (await eval(f'p.{t}').readline()).decode('utf-8')
+            content = (await eval(f'p.{t}').read()).decode('utf-8')
             if content:
             if content:
                 print(colored(t + ':', 'green'))
                 print(colored(t + ':', 'green'))
                 print(content)
                 print(content)