fix: print flush (#957)

This commit is contained in:
某时橙 2025-03-20 18:50:01 +08:00 committed by GitHub
parent ba046660fc
commit 4fa3fbb773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,6 +92,7 @@ def display_info() -> None:
time.sleep(5)
while True:
try:
sys.stdout.flush() # 强制刷新输出缓冲区
time.sleep(5)
if Path(sys.executable).name != 'pythonw.exe':
os.system(clear_command)