更新 main.py,处理 KeyboardInterrupt 和 EOFError 时的输出格式

This commit is contained in:
2025-04-02 18:16:21 +08:00
Unverified
parent 142f2f7a26
commit 771c7d11fd

View File

@@ -78,9 +78,9 @@ def pseudo_zsh():
except FileNotFoundError:
print(f"zsh: command not found: {args[0]}")
except KeyboardInterrupt:
break
print(f"")
except EOFError:
break
print(f"")
if __name__ == "__main__":
pseudo_zsh()