Year: 2025

pdf切割成多个

1. 按 590 页分割:在 `split_pdf` 函数中,使用 `while` 循环按 590 页一份对文件进行分割,直到处理完所有页面。 2. 检查文件大小:对于每个分割出的子文件,将其保存为临时文件 `temp.pdf`,并检查其大小是否超过 180MB。 3....

whisper,提取视频文案

import os import subprocess import whisper import torch from zhconv import convert from tqdm import tqdm def extract_audio(video_file): ...

xml to word

从wordpress后台,导出所有文章,格式为xml。再将xml转为word。 import xml.etree.ElementTree as ET from docx import Document def xml_to_word(xml_file_path,...

Thinking-Claude Prompt

https://github.com/richards199999/Thinking-Claude/tree/main <anthropic_thinking_protocol> For EVERY SINGLE interaction with the human,...