35 lines
827 B
Python
35 lines
827 B
Python
|
|
#!/usr/bin/env python3
|
||
|
|
# -*- coding: utf-8 -*-
|
||
|
|
"""
|
||
|
|
批量恢复章节文件
|
||
|
|
"""
|
||
|
|
import os
|
||
|
|
|
||
|
|
# 路径设置
|
||
|
|
base_path = "/root/.openclaw/novels/shaole_po_wuren_zhuize__6fea68b1/runs/20260321_213419/drafts"
|
||
|
|
|
||
|
|
# 章节文件列表(需要恢复)
|
||
|
|
chapters_to_restore = [
|
||
|
|
"chapter-07.md",
|
||
|
|
"chapter-08.md",
|
||
|
|
"chapter-09.md",
|
||
|
|
"chapter-10.md",
|
||
|
|
"chapter-11.md",
|
||
|
|
"chapter-12.md",
|
||
|
|
"chapter-13.md",
|
||
|
|
"chapter-14.md",
|
||
|
|
"chapter-15.md",
|
||
|
|
"chapter-17.md",
|
||
|
|
"chapter-18.md",
|
||
|
|
"chapter-19.md",
|
||
|
|
"chapter-20.md",
|
||
|
|
"chapter-21.md",
|
||
|
|
"chapter-22.md",
|
||
|
|
"chapter-23.md",
|
||
|
|
"chapter-24.md",
|
||
|
|
]
|
||
|
|
|
||
|
|
print(f"需要恢复的文件数量: {len(chapters_to_restore)}")
|
||
|
|
print(f"目标路径: {base_path}")
|
||
|
|
print("\n请从飞书表格手动提取这些章节的内容,然后创建对应的文件。")
|