Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
Python versions < 3.6, should use 0.6.0 version
  • Loading branch information
lxneng committed Dec 15, 2020
1 parent 2f0c7fc commit 883c7da
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
xpinyin
==========

Translate Chinese hanzi to pinyin (拼音) by Python, 汉字转拼音

.. image:: https://github.com/lxneng/xpinyin/workflows/Tests/badge.svg
:target: https://github.com/lxneng/xpinyin/actions?query=workflow%3ATests

Expand All @@ -14,21 +16,27 @@ xpinyin
:target: https://pypi.python.org/pypi/xpinyin/


Translate Chinese hanzi to pinyin (拼音) by Python, 汉字转拼音


Install
----------

::
Python version >= 3.6

.. code-block:: python
pip install -U xpinyin
Python version < 3.6

.. code-block:: python
pip install xpinyin
pip install xpinyin==0.6.0
Usage
-----

::
.. code-block:: python
>>> from xpinyin import Pinyin
>>> p = Pinyin()
Expand Down

0 comments on commit 883c7da

Please sign in to comment.