汉字拼音转换工具(Python 版)

install

# Pip
uv tool install pypinyin

usage

pypinyin -s NORMAL <chinese_string>