主要内容: - 包含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>
67 lines
2.2 KiB
Python
67 lines
2.2 KiB
Python
#!/usr/bin/env python3
|
||
# -*- coding: utf-8 -*-
|
||
|
||
# 读取mockData.js文件
|
||
with open('src/data/mockData.js', 'r', encoding='utf-8') as f:
|
||
content = f.read()
|
||
|
||
# 何泽谦的个人信息
|
||
new_profile_data = '''// 个人档案详细信息
|
||
profile: {
|
||
name: "何泽谦",
|
||
gender: "男",
|
||
studentId: "2325070573",
|
||
avatar: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",
|
||
school: "苏州农业职业技术学院",
|
||
major: "药品生产技术",
|
||
courses: ["复合能力培养", "健康管理", "药品工艺", "质量保障体系"],
|
||
className: "大健康",
|
||
studyPhase: "复合能力培养",
|
||
badges: {
|
||
credits: 94,
|
||
classRank: 7,
|
||
mbti: "ESTJ",
|
||
},
|
||
// MBTI测评报告详细数据
|
||
mbtiReport: {
|
||
type: "ESTJ",
|
||
title: "总经理 (Executive)",'''
|
||
|
||
# 找到profile的开始位置
|
||
start_marker = "// 个人档案详细信息\n profile: {"
|
||
start_pos = content.find(start_marker)
|
||
|
||
if start_pos == -1:
|
||
print("❌ 找不到profile数据标记")
|
||
exit(1)
|
||
|
||
# 找到mbtiReport的开始位置
|
||
mbti_marker = "// MBTI测评报告详细数据\n mbtiReport: {\n type:"
|
||
mbti_pos = content.find(mbti_marker, start_pos)
|
||
|
||
# 找到title行的结束位置
|
||
title_end_marker = 'title: "'
|
||
title_pos = content.find(title_end_marker, mbti_pos)
|
||
if title_pos != -1:
|
||
# 找到这一行的结束
|
||
line_end = content.find(',\n', title_pos)
|
||
if line_end != -1:
|
||
# 替换内容
|
||
new_content = content[:start_pos] + new_profile_data + content[line_end + 1:]
|
||
|
||
# 写回文件
|
||
with open('src/data/mockData.js', 'w', encoding='utf-8') as f:
|
||
f.write(new_content)
|
||
|
||
print("✅ 成功替换profile数据为何泽谦的信息!")
|
||
print(" - 姓名:何泽谦")
|
||
print(" - 学号:2325070573")
|
||
print(" - 学校:苏州农业职业技术学院")
|
||
print(" - 专业:药品生产技术")
|
||
print(" - 学分:94")
|
||
print(" - 班级排名:7")
|
||
print(" - MBTI:ESTJ")
|
||
else:
|
||
print("❌ 找不到title行的结束位置")
|
||
else:
|
||
print("❌ 找不到title标记") |