拆分 `中文---English` 形式的文本
(text)
| 56 | "👀 [Free Collection Download](https://pythoncat.top/posts/2025-04-20-sweekly) \n\n") |
| 57 | |
| 58 | def split_bilingual_text(text): |
| 59 | """拆分 `中文---English` 形式的文本""" |
| 60 | if not isinstance(text, str): |
| 61 | return text, None |
| 62 | if '---' not in text: |
| 63 | return text.strip(), None |
| 64 | chinese_text, english_text = text.split('---', 1) |
| 65 | return chinese_text.strip(), english_text.strip() or None |
| 66 | |
| 67 | def extract_issue_title(full_title): |
| 68 | """提取周刊标题冒号后的主题部分""" |
no outgoing calls
no test coverage detected