将汉字转对应的拼音
首先引用組件: Install-Package ToolGood.Words -Version 2.3.3.2
static void Main(string[] args)
{
Console.WriteLine("請輸入要轉換的漢字");
string strname = Console.ReadLine();
//獲取漢字的首字母
Console.WriteLine(WordsHelper.GetPinYin(strname)); //獲得漢字全拼音
Console.WriteLine(WordsHelper.GetFirstPinYin(strname)); //獲得漢字首字母
Console.ReadKey();
}
總結
- 上一篇: cad两直线夹角如何绘制(如何使用ppt
- 下一篇: [转] 硬盘工具DiskMan使用图解