diff --git a/monitor_web.py b/monitor_web.py index cd5f276..ec5f275 100644 --- a/monitor_web.py +++ b/monitor_web.py @@ -2096,7 +2096,8 @@ def main(): print("Ctrl+C 停止\n", flush=True) try: - os.system(f'cmd.exe /c start http://localhost:{PORT}') + import webbrowser + webbrowser.open(f'http://localhost:{PORT}') except Exception: pass