/// <summary> /// 这个单词的拼音是否需要保存(如果完全是默认注音就不保存,否则如果拼音合理,就应该保存) /// </summary> /// <param name="word"></param> /// <param name="py"></param> /// <returns></returns> private bool NeedSave(string word, List <string> py) { try { if (!PinyinHelper.ValidatePinyin(word, py)) { return(false); } for (int i = 0; i < word.Length; i++) { char c = word[i]; if (PinyinHelper.GetDefaultPinyin(c) != py[i]) { return(true); } } return(false); } catch { return(false); } }