import re with open('src/components/SandboxSimulation.tsx', 'r') as f: content = f.read() content = content.replace("实时预警流监控 (Event Monitoring)", "实时预警流监控") with open('src/components/SandboxSimulation.tsx', 'w') as f: f.write(content)