Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字符"〇"不能正确转换 #118

Closed
sidgwick opened this issue Feb 1, 2018 · 6 comments
Closed

字符"〇"不能正确转换 #118

sidgwick opened this issue Feb 1, 2018 · 6 comments
Milestone

Comments

@sidgwick
Copy link

sidgwick commented Feb 1, 2018

运行环境

  • 操作系统(Linux/macOS/Windows):Arch Linux x86_64
  • Python 版本:Python 3.6.4
  • pypinyin 版本:0.29.0

问题描述

字符 〇 不能正确转换.

问题复现步骤

import pypinyin
print(pypinyin.lazy_pinyin("〇"));  # 输出: ['〇']
@mozillazg
Copy link
Owner

mozillazg commented Feb 1, 2018

@sidgwick 感谢反馈。因为这个字符不是汉字所以之前没支持。我抽空更新一下程序支持一下这个字符。

@mozillazg mozillazg added this to the 0.30.0 milestone Feb 3, 2018
@mozillazg
Copy link
Owner

@sidgwick 最新发布的 0.30.0 版本已经支持 了。

@sidgwick
Copy link
Author

sidgwick commented Feb 5, 2018

刚才试了一下, 确实可以了. 辛苦

@sidgwick sidgwick closed this as completed Feb 5, 2018
@zgdlime
Copy link

zgdlime commented Sep 1, 2018

sidgwick
请问python-pinyin如何批量处理?

运行环境
操作系统:Windows10
Python 版本:python-3.4.3
pypinyin 版本:v0.33.0

我有一个文本文件b.txt,utf-8格式,文件里面有内容:
这个
进行
因为
还是
时候
看到
……
想把转换成汉语拼音,该如何操作?

能批处理、拖叠文件等一步到位吗?
指教一下吧!谢!

@sidgwick
Copy link
Author

sidgwick commented Sep 6, 2018

@zgdlime 这个你读文件循环处理一下就解决了吧, 不太明白你说的拖叠是什么意思.

@zgdlime
Copy link

zgdlime commented Sep 6, 2018

@sidgwick 呵,请帮写个操作步骤式子吧!!谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants