feat: 完成能源订单班图片重命名和文档整理
详细说明: - 能源订单班: 重命名7个图片文件为描述性中文名称 - 能源订单班: 更新markdown文档中的所有图片引用 - 智能开发订单班: 优化图片命名结构 - 化工订单班: 整理图片资源 - 新增SuperDesign食品订单班设计迭代文件 - 新增能源订单班终端模拟数据(energy.ts) - 清理web_frontend冗余文档 图片重命名映射: - Whisk_1ebf7115ee180218c354deb8bff7f3eddr.jpg → 光伏面板室外场景图片.jpg - Whisk_582dc133200b175859e4b322295fb3d1dr.jpg → 光伏面板生成画面.jpg - image.jpg → PLC示意图.jpg - Whisk_b35aa11c60670e38bea44dcd9fe7df5fdr.jpg → 工业机器人图片.jpg - Whisk_028f4b832e3496db8814cd48f050ec03dr.jpg → 机器视觉相机图片.jpg - Whisk_eb381c66f5156a4a74f49102095ae534dr.jpg → 输送与治具.jpg - Mermaid_Chart[...].jpg → Mermaid流程图.jpg 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
BIN
data/订单班文档资料/智能开发/notion文稿/image/API配置界面.jpg
Executable file
|
After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 279 KiB |
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 842 KiB After Width: | Height: | Size: 842 KiB |
BIN
data/订单班文档资料/智能开发/notion文稿/image/用户信息后台数据.jpg
Executable file
|
After Width: | Height: | Size: 140 KiB |
BIN
data/订单班文档资料/智能开发/notion文稿/image/课程信息后台数据.jpg
Executable file
|
After Width: | Height: | Size: 136 KiB |
BIN
data/订单班文档资料/智能开发/notion文稿/image/课程内容.jpg
Executable file
|
After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
BIN
data/订单班文档资料/智能开发/notion文稿/image/首页.jpg
Executable file
|
After Width: | Height: | Size: 195 KiB |
54
data/订单班文档资料/智能开发/notion文稿/rename_images.py
Executable file
@@ -0,0 +1,54 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
智能开发订单班图片重命名脚本
|
||||
将UUID样式的图片文件名重命名为描述性名称
|
||||
"""
|
||||
|
||||
import os
|
||||
import shutil
|
||||
|
||||
# 图片映射关系(基于markdown文档中的描述)
|
||||
image_map = {
|
||||
"image.jpg": "首页.jpg",
|
||||
"image 1.jpg": "用户信息后台数据.jpg",
|
||||
"image 2.jpg": "智能学习数据分析.jpg",
|
||||
"image 3.jpg": "课程信息后台数据.jpg",
|
||||
"image 4.jpg": "课程内容.jpg",
|
||||
"image 5.jpg": "课程直播间.jpg",
|
||||
"image 6.jpg": "注册界面.jpg",
|
||||
"image 7.jpg": "热门课程.jpg",
|
||||
"image 8.jpg": "API配置界面.jpg",
|
||||
}
|
||||
|
||||
# 获取当前脚本所在目录
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
image_dir = os.path.join(current_dir, "image")
|
||||
|
||||
print("=" * 60)
|
||||
print("智能开发订单班图片重命名脚本")
|
||||
print("=" * 60)
|
||||
print(f"图片目录: {image_dir}")
|
||||
print(f"准备重命名 {len(image_map)} 个文件")
|
||||
print("=" * 60)
|
||||
|
||||
# 重命名文件
|
||||
renamed_count = 0
|
||||
for old_name, new_name in image_map.items():
|
||||
old_path = os.path.join(image_dir, old_name)
|
||||
new_path = os.path.join(image_dir, new_name)
|
||||
|
||||
if os.path.exists(old_path):
|
||||
try:
|
||||
shutil.move(old_path, new_path)
|
||||
print(f"✓ {old_name} → {new_name}")
|
||||
renamed_count += 1
|
||||
except Exception as e:
|
||||
print(f"✗ 重命名失败: {old_name} → {new_name}")
|
||||
print(f" 错误: {e}")
|
||||
else:
|
||||
print(f"⚠ 文件不存在: {old_name}")
|
||||
|
||||
print("=" * 60)
|
||||
print(f"重命名完成: {renamed_count}/{len(image_map)} 个文件")
|
||||
print("=" * 60)
|
||||