INNER CODE UNIT · Python
_think_end
usepr/eva · eva.py:46
def _think_end():
"""结束think打印,恢复正文"""
if HAS_RICH:
RICH_CONSOLE.print("")
else:
sys.stdout.write("\033[0m\n")
sys.stdout.flush()
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
_resolved = Path(__file__).resolve()
this_file = str(_resolved)
this_dir = _resolved.parent
# ====================== 跨平台配置区 ======================
IS_WINDOWS = os.name == "nt"
IS_MACOS = sys.platform == "darwin"