Files
EvoScientist/add_dgx_spark.py
T
m4 c2743251e9 Initial commit of EvoScientist framework
Self-evolving AI scientist framework built on LangGraph/LangChain with
CLI/TUI core, FastAPI gateway, and Next.js frontend.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-07-13 08:07:45 +08:00

41 lines
1.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
修改 yhsys_updated.docx - 仅添加DGX Spark 4台
1. 在"核心技术群"中补充 AI 生成相关描述
2. 在"经费使用"中加入 DGX Spark 4台成本(约$6,999×4≈20万元)
"""
from docx import Document
from docx.oxml import OxmlElement
doc = Document('yhsys_updated.docx')
# ========== 1. 修改核心技术群描述 ==========
for para in doc.paragraphs:
if "技术攻关:突破智能创意设计" in para.text:
if para.runs:
para.runs[0].text = "技术攻关:突破智能创意设计(含AI生成式创意)、虚实融合燃放、绿色工艺模拟三大核心技术群"
print("✅ 已修改:核心技术群补充AI生成描述")
break
# ========== 2. 在经费使用部分添加DGX Spark 4台预算 ==========
target_para = None
for para in doc.paragraphs:
if "经费使用(总预算220万元)" in para.text:
target_para = para
break
if target_para:
p_element = target_para._p
# 添加DGX Spark预算行
new_para = OxmlElement('w:p')
new_r = OxmlElement('w:r')
new_t = OxmlElement('w:t')
new_t.text = "• AI设计系统(DGX Spark × 4台):约20万元($6,999/台 × 4)"
new_r.append(new_t)
new_para.append(new_r)
p_element.addnext(new_para)
print("✅ 已添加:DGX Spark 4台预算(约20万元)")
doc.save('yhsys_updated.docx')
print("\n✅ 文档已保存")