主要内容: - 包含12个产业的完整教务系统前端代码 - 智能启动脚本 (start-industry.sh) - 可视化产业导航页面 (index.html) - 项目文档 (README.md) 优化内容: - 删除所有node_modules和.yoyo文件夹,从7.5GB减少到2.7GB - 添加.gitignore文件避免上传不必要的文件 - 自动依赖管理和智能启动系统 产业列表: 1. 文旅产业 (5150) 2. 智能制造 (5151) 3. 智能开发 (5152) 4. 财经商贸 (5153) 5. 视觉设计 (5154) 6. 交通物流 (5155) 7. 大健康 (5156) 8. 土木水利 (5157) 9. 食品产业 (5158) 10. 化工产业 (5159) 11. 能源产业 (5160) 12. 环保产业 (5161) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
42 lines
1.5 KiB
Python
42 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
print("查找语法问题...")
|
|
|
|
with open('/Users/apple/Documents/cursor/教务系统/frontend_大健康/src/mocks/resumeInterviewMock.js', 'r', encoding='utf-8') as f:
|
|
lines = f.readlines()
|
|
|
|
# 跟踪括号栈
|
|
stack = []
|
|
line_num = 0
|
|
|
|
for i, line in enumerate(lines, 1):
|
|
for j, char in enumerate(line):
|
|
if char in '{[':
|
|
stack.append((char, i, j))
|
|
elif char in '}]':
|
|
if not stack:
|
|
print(f"第{i}行第{j}列: 多余的关闭符号 '{char}'")
|
|
print(f" 内容: {line.strip()}")
|
|
else:
|
|
opener, open_line, open_col = stack.pop()
|
|
expected = '}' if opener == '{' else ']'
|
|
if char != expected:
|
|
print(f"第{i}行第{j}列: 不匹配的关闭符号")
|
|
print(f" 期望 '{expected}' 但得到 '{char}'")
|
|
print(f" 开始于第{open_line}行第{open_col}列")
|
|
print(f" 内容: {line.strip()}")
|
|
|
|
# 检查未关闭的括号
|
|
if stack:
|
|
print("\n未关闭的括号:")
|
|
for char, line_num, col in stack[-5:]: # 显示最后5个未关闭的
|
|
print(f" 第{line_num}行第{col}列: '{char}' 未关闭")
|
|
if line_num <= len(lines):
|
|
print(f" 内容: {lines[line_num-1].strip()}")
|
|
|
|
# 检查第6518行附近
|
|
print("\n第6518行附近的内容:")
|
|
for i in range(max(0, 6515), min(len(lines), 6525)):
|
|
if i < len(lines):
|
|
print(f"{i+1}: {lines[i].rstrip()}") |