Python Chinese to Pinyin: 1 Line of Code, Supports Tone Marks, Polyphone Auto-Recognition, Build a Pinyin Tool
👉 Project Website: https://www.python-office.com/ 👈
👉 Open Source Project Discussion Group 👈
Main Content
Python Official released python-office, a library for Python automation: Breaking! Official Released Third-Party Library: python-office, Built for Python Automation
No need to write code yourself, just call the ready-made methods.
Hello everyone, this is CoderWanFeng, focusing on sharing: Python Automation.
This series of tutorials introduces the features of python-office automation, one by one.
1. Feature Introduction
Today we introduce one of the features of this library:
Generate Pinyin for Chinese Characters: Only one line of code to output pinyin for Chinese characters, with options for tone marks and tone format.
2. Usage Instructions
Download pohan
Only one command is needed to automatically download and install pohan
1 | pip install pohan |
Call the Function
Copy the code below, modify the file location, right-click and select Run
1 | import pohan |
3. Submit Requirements
Is it simple to implement complex functions with just 1 line of code? The python-office automation library is still under continuous development.
Everyone is welcome to join the discussion group to share your feature requests~
Also welcome developers with technical skills to enrich this project together:
- Your star & fork & pr are welcome! ⭐
- Open Source Address:
- https://gitee.com/CoderWanFeng/python-office
- https://github.com/CoderWanFeng/python-office
CoderWanFeng focuses on AI programming training. Beginners can start making AI projects after watching his tutorial 《30 Lectures · AI Programming Training Camp》 collaborated with Turing Community.
🎓 AI 编程实战课程
想系统学习 AI 编程?程序员晚枫的 AI 编程实战课 帮你从零上手!
- 👉 课程报名:点击这里报名,前3讲免费试听
- 👉 免费试看:B站免费试看前3讲,先看看适不适合自己


