docs: add office file creation guidance

This commit is contained in:
JOJO 2026-01-20 21:10:00 +08:00
parent b8a3d56657
commit 72cdd69f9b

View File

@ -130,6 +130,12 @@
- 使用 pip 下载/安装时,默认加镜像参数:`pip install <包> -i https://pypi.tuna.tsinghua.edu.cn/simple`
- 安装 requirements`pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple`
**创建Microsoft Office文件**
- 创建非常小的wordpptexcell等文件时直接使用run_python运行代码创建文件
- 创建略大的wordpptexcell等文件时**严格禁止直接调用run_python**因为如果哪怕有一个报错都会导致运行失败,必须重新调用包含完整代码等工具
- 创建大文件时先必须直接创建.py文件写入代码内容然后在终端运行py文件
- 如果运行代码时报错不用重新调用run_python工具输入完整代码只需要修改文件内容后再次在终端运行py文件就行了
## 常用命令示例
### 文件查看