html = r''' 字幕時間戳記清理小工具
字幕清理小工具
SRT・VTT 文字整理
✨ 一鍵整理字幕文字

把時間戳記,
從字幕中清出去!

匯入字幕檔,或直接貼上字幕內容,就能移除時間軸與字幕序號,保留原本的對白文字,方便複製、編輯或另存成純文字。

1選擇 .srt / .vtt 檔案,或貼上字幕
2按下「清除時間戳記」進行整理
3複製結果,或下載 .txt 純文字檔
尚未處理字幕。
0 個字

小提醒:本工具在瀏覽器本機處理檔案,不會上傳字幕內容。支援常見 SRT 與 WebVTT 時間格式;原始檔案不會被修改。

''' path = "/mnt/data/subtitle_cleaner.html" with open(path, "w", encoding="utf-8") as f: f.write(html) with open(path, "r", encoding="utf-8") as f: check = f.read() assert check == html and check.startswith("") and check.endswith("") print(f"已成功建立並檢查檔案:{path}({len(check)} 個字元)")