提取周刊标题冒号后的主题部分
(full_title)
| 65 | return chinese_text.strip(), english_text.strip() or None |
| 66 | |
| 67 | def extract_issue_title(full_title): |
| 68 | """提取周刊标题冒号后的主题部分""" |
| 69 | if not full_title: |
| 70 | return '' |
| 71 | for sep in (':', ':'): |
| 72 | if sep in full_title: |
| 73 | return full_title.split(sep, 1)[1].strip() |
| 74 | return full_title.strip() |
| 75 | |
| 76 | def build_english_weekly_title(full_title, weekly_no): |
| 77 | """基于 `中文---English` 主标题约定构造英文周刊标题""" |
no outgoing calls
no test coverage detected