使用 client = UapiClient("https://uapis.cn") txt=str.__doc__ result = client.translate.post_translate_text(to_lang="zh-CHS", text=txt) 翻译str.__doc__时发现输出缺失和格式异常. 后续测试发现当使用包含 `<`、`>` 等尖括号字符的文本作为翻译输入时,API 返回的结果中出现错误的 HTML 实体编码,使用中文分号替代英文分号. [bug.py](https://github.com/user-attachments/files/24937657/bug.py) 详情见附件bug.py
使用
client = UapiClient("https://uapis.cn")
txt=str.doc
result = client.translate.post_translate_text(to_lang="zh-CHS", text=txt)
翻译str.__doc__时发现输出缺失和格式异常.
后续测试发现当使用包含
<、>等尖括号字符的文本作为翻译输入时,API 返回的结果中出现错误的 HTML 实体编码,使用中文分号替代英文分号.bug.py
详情见附件bug.py