(url: str)
| 68 | print(f"[ERROR] 写入文件 {file_path} 失败: {str(e)}") |
| 69 | |
| 70 | def safe_quote_url(url: str) -> str: |
| 71 | try: |
| 72 | unquoted = unquote(url) |
| 73 | return quote(unquoted, safe=':/?&=') |
| 74 | except Exception: |
| 75 | return url |
| 76 | |
| 77 | def traditional_to_simplified(text: str) -> str: |
| 78 | if not hasattr(traditional_to_simplified, "converter"): |
no outgoing calls
no test coverage detected