详细说明: - 删除web_result下的3个冗余文件夹(会展策划/Agent_prompt/agent头像) - 所有资源已整合到订单班文档资料/文旅目录 - 更新11个文件中的122处路径引用 - 修复wenlu.ts的TypeScript类型声明 - 添加AgentOutput类型导入 影响文件: - web_result/index.html (30处路径更新) - web_result/order-classes/wenlu/*.html (62处更新) - web_result/js/router.js (1处更新) - exhibition-demo/src/data/terminalSimulations/wenlu.ts (类型修复) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
863 B
Python
28 lines
863 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import shutil
|
|
|
|
# 图片目录
|
|
image_dir = "/Users/xiaoqi/Documents/Dev/Project/2025-09-08_n8nDEMO演示/web_frontend/exhibition-demo/public/data/订单班文档资料/土木/notion文稿/image"
|
|
|
|
print("开始将所有 .jpeg 文件重命名为 .jpg...")
|
|
|
|
# 获取所有 .jpeg 文件
|
|
jpeg_files = [f for f in os.listdir(image_dir) if f.endswith('.jpeg')]
|
|
|
|
# 重命名
|
|
for old_name in jpeg_files:
|
|
new_name = old_name.replace('.jpeg', '.jpg')
|
|
old_path = os.path.join(image_dir, old_name)
|
|
new_path = os.path.join(image_dir, new_name)
|
|
|
|
if os.path.exists(old_path):
|
|
shutil.move(old_path, new_path)
|
|
print(f"✓ 重命名: {old_name} -> {new_name}")
|
|
else:
|
|
print(f"✗ 文件不存在: {old_name}")
|
|
|
|
print(f"\n重命名完成!共处理 {len(jpeg_files)} 个文件。")
|