импортировать java.util.collections; импортировать java.util.iterator; импортировать java.util.linkedhashmap; импортировать java.util.map; / ** * 将汉字转化为全拼 */ public class cntospell1 {частная статическая карта <string, integer> spellmap = null; // 存放生僻字和其拼音的 Карта частной статической карты <символ, строка> endmonworwsmap = null; static {if (spellmap == null) {spellmap = collections.synchronizedmap (new LinkedHashmap <String, Integer> (396)); endommonwordsmap = collections.synchronizedmap (new LinkedHashmap <символ, String> (200)); } инициализировать (); inituncommonwords (); } private cntospell1 () {} / ** * 初始化 * / private static void initiaze () {spellmap.put ("'a", -20319); spellmap.put ("'' ai", -20317); Spellmap.put ("'an", -20304); spellmap.put ("'ang", -20295); SpellMap.put ("'' AO", -20292); Spellmap.put ("ba", -20283); Spellmap.put ("bai", -20265); Speplmap.put («запрет», -20257); SpellMap.put ("Bang", -20242); Spellmap.put ("Bao", -20230); Speplmap.put ("bei", -20051); Spellmap.put ("ben", -20036); Speplmap.put ("Beng", -20032); SpellMap.put ("Bi", -20026); SpellMap.put ("bian", -20002); spellmap.put ("biao", -19990); Spellmap.put ("Bie", -19986); Spellmap.put ("bin", -19982); spellmap.put ("bing", -19976); spellmap.put ("bo", -19805); SpellMap.put ("bu", -19784); SpellMap.put ("CA", -19775); Spellmap.put ("cai", -19774); SpellMap.put ("can", -19763); spellmap.put ("cang", -19756); spellmap.put ("cao", -19751); spellmap.put ("ce", -19746); Spellmap.put ("ceng", -19741); SpellMap.put ("Cha", -19739); Spellmap.put ("chai", -19728); Spellmap.put ("Chan", -19725); SpellMap.put ("Chang", -19715); Spellmap.put ("Chao", -19540); SpellMap.put ("CHE", -19531); spellmap.put ("Chen", -19525); spellmap.put ("cheng", -19515); Spellmap.put ("chi", -19500); spellmap.put ("Chong", -19484); Spellmap.put ("Chou", -19479); Spellmap.put ("Chu", -19467); Spellmap.put ("Chuai", -19289); Spellmap.put ("Chuan", -19288); Spellmap.put ("Chuang", -19281); spellmap.put ("Chui", -19275); spellmap.put ("Chun", -19270); spellmap.put ("Chuo", -19263); spellmap.put ("ci", -19261); spellmap.put ("cong", -19249); Spellmap.put ("cou", -19243); spellmap.put ("cu", -19242); Spellmap.put ("cuan", -19238); Spellmap.put ("cui", -19235); spellmap.put ("cun", -19227); spellmap.put ("cuo", -19224); SpellMap.put ("da", -19218); Spellmap.put ("dai", -19212); Spellmap.put ("dan", -19038); spellmap.put ("dang", -19023); spellmap.put ("dao", -19018); Spellmap.put ("de", -19006); Spellmap.put ("Deng", -19003); Spellmap.put ("di", -18996); SpellMap.put ("dian", -18977); Spellmap.put ("Diao", -18961); Spellmap.put ("Die", -18952); spellmap.put ("ding", -18783); spellmap.put ("diu", -18774); spellmap.put ("dong", -18773); spellmap.put ("Dou", -18763); Spellmap.put ("du", -18756); spellmap.put ("duan", -18741); spellmap.put ("dui", -18735); spellmap.put ("dun", -18731); Spellmap.put ("Duo", -18722); spellmap.put ("'e", -18710); spellmap.put ("'en", -18697); spellmap.put ("'er", -18696); spellmap.put ("fa", -18526); SpellMap.put («Фан», -18518); Spellmap.put ("Fang", -18501); SpellMap.put ("fei", -18490); SpellMap.put ("fen", -18478); Spellmap.put ("feng", -18463); SpellMap.put ("fo", -18448); spellmap.put ("fou", -18447); spellmap.put ("fu", -18446); spellmap.put ("ga", -18239); Spellmap.put ("gai", -18237); spellmap.put ("gan", -18231); SpellMap.put ("Gang", -18220); Spellmap.put ("Gao", -18211); SpellMap.put ("ge", -18201); spellmap.put ("gei", -18184); SpellMap.put («Gen», -18183); Spellmap.put ("Geng", -18181); SpellMap.put ("Gong", -18012); spellmap.put ("gou", -17997); spellmap.put ("gu", -17988); spellmap.put ("gua", -17970); SpellMap.put ("guai", -17964); Spellmap.put ("guan", -17961); Spellmap.put ("guang", -17950); SpellMap.put ("GUI", -17947); Speplmap.put ("Gun", -17931); Spellmap.put ("Guo", -17928); SpellMap.put ("Ha", -17922); Spellmap.put ("hai", -17759); Spellmap.put ("han", -17752); SpellMap.put ("Hang", -17733); Spellmap.put ("Hao", -17730); Spellmap.put («He», -17721); Spellmap.put ("hei", -17703); Spellmap.put ("Hen", -17701); Spellmap.put ("heng", -17697); Spellmap.put ("hong", -17692); SpellMap.put ("hou", -17683); Spellmap.put ("hu", -17676); Spellmap.put ("hua", -17496); Spellmap.put ("huai", -17487); Spellmap.put ("huan", -17482); Spellmap.put ("huang", -17468); spellmap.put ("hui", -17454); Spellmap.put ("hun", -17433); Spellmap.put ("Huo", -17427); spellmap.put ("ji", -17417); Spellmap.put ("Jia", -17202); Spellmap.put ("jian", -17185); spellmap.put ("jiang", -16983); Spellmap.put ("Jiao", -16970); spellmap.put ("jie", -16942); Spellmap.put ("Jin", -16915); spellmap.put ("jing", -16733); Spellmap.put ("jiong", -16708); spellmap.put ("jiu", -16706); SpellMap.put ("Ju", -16689); Spellmap.put ("Juan", -16664); Spellmap.put ("jue", -16657); Spellmap.put ("Jun", -16647); spellmap.put ("ka", -16474); Spellmap.put ("kai", -16470); Spellmap.put ("Kan", -16465); Spellmap.put ("kang", -16459); spellmap.put ("kao", -16452); spellmap.put ("ke", -16448); Spellmap.put ("ken", -16433); Spellmap.put ("keng", -16429); Spellmap.put ("Kong", -16427); Spellmap.put ("Kou", -16423); spellmap.put ("ku", -16419); spellmap.put ("kua", -16412); Spellmap.put ("kuai", -16407); SpellMap.put ("kuan", -16403); Spellmap.put ("kuang", -16401); Spellmap.put ("kui", -16393); Spellmap.put ("kun", -16220); SpellMap.put ("kuo", -16216); SpellMap.put ("la", -16212); Spellmap.put ("lai", -16205); SpellMap.put ("LAN", -16202); spellmap.put ("lang", -16187); Spellmap.put ("lao", -16180); SpellMap.put ("le", -16171); Spellmap.put ("lei", -16169); Spellmap.put ("leng", -16158); SpellMap.put ("li", -16155); SpellMap.put ("lia", -15959); Spellmap.put ("lian", -15958); Spellmap.put ("Liang", -15944); Spellmap.put ("liao", -15933); SpellMap.put («ложь», -15920); SpellMap.put ("lin", -15915); Spellmap.put ("ling", -15903); Spellmap.put ("liu", -15889); SpellMap.put ("long", -15878); Spellmap.put ("lou", -15707); SpellMap.put ("lu", -15701); Spellmap.put ("lv", -15681); Spellmap.put ("luan", -15667); SpellMap.put ("lue", -15661); SpellMap.put ("lun", -15659); SpellMap.put ("luo", -15652); SpellMap.put ("ma", -15640); spellmap.put ("mai", -15631); SpellMap.put ("Человек", -15625); Spellmap.put ("mang", -15454); spellmap.put ("mao", -15448); spellmap.put ("me", -15436); Spellmap.put ("mei", -15435); SpellMap.put ("Men", -15419); SpellMap.put ("Meng", -15416); SpellMap.put ("Mi", -15408); Spellmap.put ("mian", -15394); Spellmap.put ("miao", -15385); Spellmap.put ("mie", -15377); Speplmap.put ("min", -15375); SpellMap.put ("ming", -15369); spellmap.put ("miu", -15363); SpellMap.put ("mo", -15362); spellmap.put ("moun -moune", -15183); spellmap.put ("mu", -15180); SpellMap.put ("na", -15165); Spellmap.put ("nai", -15158); SpellMap.put ("NAN", -15153); Spellmap.put ("nang", -15150); Spellmap.put ("nao", -15149); SpellMap.put ("ne", -15144); spellmap.put ("nei", -15143); spellmap.put ("nen", -15141); spellmap.put ("neng", -15140); spellmap.put ("ni", -15139); Spellmap.put ("Nian", -15128); SpellMap.put ("Niang", -15121); Spellmap.put ("niao", -15119); spellmap.put ("nie", -15117); spellmap.put ("nin", -15110); SpellMap.put ("ning", -15109); spellmap.put ("niu", -14941); spellmap.put ("nong", -14937); spellmap.put ("nu", -14933); Spellmap.put ("nv", -14930); SpellMap.put ("Nuan", -14929); spellmap.put ("nue", -14928); spellmap.put ("nuo", -14926); spellmap.put ("'O", -14922); spellmap.put ("'ou", -14921); spellmap.put ("pa", -14914); spellmap.put ("pai", -14908); Speplmap.put («Pan», -14902); spellmap.put ("pang", -14894); SpellMap.put ("pao", -14889); SpellMap.put ("PEI", -14882); SpellMap.put ("pen", -14873); Spellmap.put ("peng", -14871); Spellmap.put ("pi", -14857); Spellmap.put ("pian", -14678); Spellmap.put ("piao", -14674); Spellmap.put ("Pie", -14670); SpellMap.put ("PIN", -14668); SpellMap.put ("Ping", -14663); spellmap.put ("po", -14654); spellmap.put ("pu", -14645); spellmap.put ("Qi", -14630); SpellMap.put ("Qia", -14594); SpellMap.put ("Qian", -14429); spellmap.put ("Qiang", -14407); spellmap.put ("Qiao", -14399); spellmap.put ("Qie", -14384); Spellmap.put ("Qin", -14379); spellmap.put ("Qing", -14368); spellmap.put ("qiong", -14355); spellmap.put ("Qiu", -14353); spellmap.put ("qu", -14345); spellmap.put ("quan", -14170); spellmap.put ("que", -14159); Spellmap.put ("Qun", -14151); spellmap.put ("Ran", -14149); Spellmap.put ("rang", -14145); spellmap.put ("rao", -14140); SpellMap.put ("re", -14137); SpellMap.put ("ren", -14135); Spellmap.put ("reng", -14125); SpellMap.put ("ri", -14123); SpellMap.put ("rong", -14122); Spellmap.put ("rou", -14112); spellmap.put ("ru", -14109); Spellmap.put ("ruan", -14099); Spellmap.put ("rui", -14097); spellmap.put ("run", -14094); SpellMap.put ("ruo", -14092); spellmap.put ("sa", -14090); SpellMap.put ("sai", -14087); SpellMap.put ("san", -14083); SpellMap.put ("Sang", -13917); Spellmap.put ("Sao", -13914); spellmap.put ("se", -13910); Spellmap.put ("sen", -13907); Spellmap.put ("Seng", -13906); Spellmap.put ("sha", -13905); SpellMap.put ("Shai", -13896); SpellMap.put ("Shan", -13894); Spellmap.put ("Shang", -13878); Spellmap.put ("Shao", -13870); Spellmap.put («Она», -13859); Spellmap.put ("Shen", -13847); SpellMap.put ("Sheng", -13831); Spellmap.put ("shi", -13658); Spellmap.put ("Shou", -13611); spellmap.put ("shu", -13601); spellmap.put ("shua", -13406); SpellMap.put ("Shuai", -13404); spellmap.put ("shuan", -13400); SpellMap.put ("Shuang", -13398); spellmap.put ("shui", -13395); SpellMap.put ("Shun", -13391); SpellMap.put ("Shuo", -13387); Spellmap.put ("si", -13383); spellmap.put ("песня", -13367); spellmap.put ("sou", -13359); spellmap.put ("su", -13356); spellmap.put ("suan", -13343); spellmap.put ("sui", -13340); SpellMap.put ("Солнце", -13329); spellmap.put ("suo", -13326); SpellMap.put ("ta", -13318); Spellmap.put ("tai", -13147); Spellmap.put ("tan", -13138); SpellMap.put ("Tang", -13120); SpellMap.put ("Дао", -13107); Spellmap.put ("te", -13096); Spellmap.put ("teng", -13095); SpellMap.put ("ti", -13091); Spellmap.put ("tian", -13076); Spellmap.put ("tiao", -13068); Speplmap.put ("tie", -13063); Spellmap.put ("ting", -13060); Spellmap.put ("tong", -12888); spellmap.put ("tou", -12875); Speplmap.put ("tu", -12871); Spellmap.put ("tuan", -12860); Spellmap.put ("tui", -12858); SpellMap.put ("TUN", -12852); Spellmap.put ("tuo", -12849); SpellMap.put ("wa", -12838); SpellMap.put ("wai", -12831); Spellmap.put ("wan", -12829); SpellMap.put ("wang", -12812); Spellmap.put ("wei", -12802); spellmap.put ("wen", -12607); SpellMap.put ("Weng", -12597); spellmap.put ("wo", -12594); spellmap.put ("wu", -12585); spellmap.put ("xi", -12556); spellmap.put ("XIA", -12359); Spellmap.put ("Xian", -12346); spellmap.put ("Xiang", -12320); Spellmap.put ("xiao", -12300); SpellMap.put ("xie", -12120); Spellmap.put ("xin", -12099); SpellMap.put ("XING", -12089); spellmap.put ("Xiong", -12074); spellmap.put ("xiu", -12067); spellmap.put ("Xu", -12058); spellmap.put ("xuan", -12039); spellmap.put ("xue", -11867); spellmap.put ("xun", -11861); Spellmap.put ("ya", -11847); Spellmap.put ("yan", -11831); Spellmap.put ("yang", -11798); Spellmap.put ("yao", -11781); spellmap.put ("ye", -11604); spellmap.put ("yi", -11589); Spellmap.put («Инь», -11536); Spellmap.put ("ying", -11358); spellmap.put ("yo", -11340); Spellmap.put ("yong", -11339); spellmap.put ("you", -11324); Spellmap.put ("yu", -11303); spellmap.put ("yuan", -11097); Spellmap.put ("Yue", -11077); Spellmap.put ("yun", -11067); SpellMap.put ("ZA", -11055); SpellMap.put ("Zai", -11052); spellmap.put ("Zan", -11045); SpellMap.put ("Zang", -11041); SpellMap.put ("Zao", -11038); Spellmap.put ("ze", -11024); Spellmap.put ("Zei", -11020); spellmap.put ("zen", -11019); SpellMap.put ("Zeng", -11018); spellmap.put ("Zha", -11014); SpellMap.put ("Zhai", -10838); spellmap.put ("Zhan", -10832); Spellmap.put ("Zhang", -10815); SpellMap.put ("Zhao", -10800); spellmap.put ("Zhe", -10790); Spellmap.put ("Zhen", -10780); spellmap.put ("Zheng", -10764); spellmap.put ("Zhi", -10587); spellmap.put ("Zhong", -10544); Spellmap.put ("Zhou", -10533); spellmap.put ("Zhu", -10519); SpellMap.put ("Zhua", -10331); spellmap.put ("Zhuai", -10329); SpellMap.put ("Zhuan", -10328); spellmap.put ("Zhuang", -10322); spellmap.put ("Zhui", -10315); Spellmap.put ("Zhun", -10309); SpellMap.put ("Zhuo", -10307); spellmap.put ("zi", -10296); SpellMap.put ("Zong", -10281); spellmap.put ("Zou", -10274); spellmap.put ("zu", -10270); spellmap.put ("Zuan", -10262); spellmap.put ("Zui", -10260); SpellMap.put ("Zun", -10256); spellmap.put ("Zuo", -10254); } /** * 添加生僻字 * @param cnword 生僻字 * @param заклинание 生僻字的拼音, 如果拼音以 a, o, e 开头 请将开头分别改为 'a,' o, 'e , 如 :安 ('an) */ public static void putuncommonword (char cnword, string spell) {endommonwordsmap.put (cnword, spell); } / ** * 初始化生僻字 * / private static void initUncommonwords () {putuncommonword ('', "ao"); Putuncommonword ('灞', "ba"); Putuncommonword ('', "Ben"); Putuncommonword ('', "biao"); Putuncommonword ('', "biao"); Putuncommonword ('杈', "cha"); Putuncommonword ('', "Chen"); Putuncommonword ('', "Cheng"); Putuncommonword ('魑', "chi"); Putuncommonword ('', "Chong"); Putuncommonword ('', "Chong"); PutunCommonWord ('', "cu"); Putuncommonword ('毳', "cui"); Putuncommonword ('', "Fang"); Putuncommonword ('沣', "feng"); PutunCommonWord ('', "gou"); Putuncommonword ('焓', "Han"); Putuncommonword ('', "Han"); Putuncommonword ('晗', "Han"); Putuncommonword ('', "Han"); Putuncommonword ('翮', "он"); Putuncommonword ('', "он"); Putuncommonword ('', "huan"); Putuncommonword ('', "hui"); Putuncommonword ('', "jie"); Putuncommonword ('', "Jing"); Putuncommonword ('', "Jing"); Putuncommonword ('', "Jing"); Putuncommonword ('', "Kun"); Putuncommonword ('琨', "Kun"); Putuncommonword ('', "Kun"); Putuncommonword ('骊', "li"); Putuncommonword ('鎏', "liu"); Putuncommonword ('', "Man"); Putuncommonword ('', «Mei»); Putuncommonword ('淼', "miao"); Putuncommonword ('', "NAN"); Putuncommonword ('', "NAN"); Putuncommonword ('甯', "ning"); PutunCommonWord ('', "ning"); PutunCommonWord ('', "PA"); PutunCommonWord ('', "pi"); Putuncommonword ('', "Qian"); Putuncommonword ('', "Qin"); Putuncommonword ('', "Qing"); Putuncommonword ('', "Qing"); Putuncommonword ('', "Qing"); Putuncommonword ('', "Qing"); Putuncommonword ('', "Qing"); Putuncommonword ('悫', "que"); PutunCommonWord ('', "Que"); Putuncommonword ('', "rong"); Putuncommonword ('', "Shen"); Putuncommonword ('', "Shen"); Putuncommonword ('', "Shen"); Putuncommonword ('', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('晟', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('眚', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('', "Sheng"); Putuncommonword ('', "Shi"); PutunCommonWord ('', "su"); Putuncommonword ('', "Дао"); Putuncommonword ('', "tian"); Putuncommonword ('仝', "tong"); Putuncommonword ('', "Wei"); Putuncommonword ('炜', "wei"); Putuncommonword ('玮', "wei"); Putuncommonword ('', "wu"); PutunCommonWord ('邬', "wu"); PutunCommonWord ('', "xi"); Putuncommonword ('', "Xian"); Putuncommonword ('', "xiao"); Putuncommonword ('', "xiao"); Putuncommonword ('筱', "xiao"); Putuncommonword ('勰', "xie"); Putuncommonword ('忻', "xin"); Putuncommonword ('庥', "xiu"); PutunCommonWord ('', "Xu"); PutunCommonWord ('', "Xu"); PutunCommonWord ('', "Xu"); Putuncommonword ('', "Xuan"); Putuncommonword ('煊', "Xuan"); Putuncommonword ('', "Xuan"); Putuncommonword ('', "Xuan"); Putuncommonword ('暄', "Xuan"); Putuncommonword ('娅', "ya"); Putuncommonword ('琰', "yan"); Putuncommonword ('妍', "yan"); Putuncommonword ('焱', "yan"); Putuncommonword ('', "Yang"); Putuncommonword ('', "Yang"); Putuncommonword ('', "Yang"); Putuncommonword ('', "yao"); Putuncommonword ('', "yao"); Putuncommonword ('怡', "Yi"); PutunCommonWord ('', "Yi"); PutunCommonWord ('', "Yi"); PutunCommonWord ('', "Yi"); Putuncommonword ('瑛', "ying"); Putuncommonword ('', "ying"); Putuncommonword ('', "ying"); Putuncommonword ('', "ying"); Putuncommonword ('滢', "ying"); Putuncommonword ('', "ying"); PutunCommonWord ('莜', "you"); Putuncommonword ('昱', "yu"); Putuncommonword ('', "yun"); Putuncommonword ('', "Zhe"); Putuncommonword ('', "Zhe"); Putuncommonword ('', "Zhi"); } /*** 获得单个汉字的 ASCII. * @param cn 汉字字符 * @return 汉字对应的 ascii, 错误时返回 0 */ public static int getcnascii (char cn) {byte [] bytes = (string.valueof (cn)). getbytes (); if (bytes == null || bytes.length == 0 || bytes.length> 2) {// 错误 return 0; } if (bytes.length == 1) {// 英文字符 возвращать байты [0]; } if (bytes.length == 2) {// 中文字符 int hightbyte = 256 + bytes [0]; int lowbyte = 256 + байты [1]; Возврат (256 * Hightbyte + Lowbyte) - 256 * 256; // 返回 ascii} return 0; // 错误} /** * 根据 ascii 码到 Spellmap 中查找对应的拼音 * @param ascii ascii * @return ascii 对应的拼音, 如果 ascii 对应的字符为单字符 , 则返回对应的单字符, 如果不是单字符且在 Заклинания 中没找到对应的拼音 , 则返回空字符串 (""), */ public static String getSpellbyascii (int ascii) {if (ascii> 0 && ascii <160) {// 单字符 return String. значение ((char) ascii); } if (ascii <-20319 || ascii> -10247) {// 不知道的字符 return ""; } String spell = null; // ключ целое число Asciirang; // value string spellprevious = null; // 用来保存上次轮循环的 Key int asciirangprevious = -20319; // 用来保存上一次循环的 Значение для (итератора it = spellmap.keyset (). Iterator (); it.hasnext ();) {spell = (String) it.next (); // 拼音 asciirang = spellmap.get (spell); // 拼音的 ascii if (asciirang! = Null) {if (ascii> = asciirangprevious && ascii <asciirang) {// 区间找到, 返回对应的拼音 return (spellvrevious == null)? Заклинание: Заклинание; } else {spellprevious = spell; asciirangprevious = asciirang; } } } возвращаться ""; } /** * 获取字符串的全拼或首拼, 是汉字则转化为对应的拼音或拼音首字母, 其它字符不进行转换 * @param cnstr 要获取全拼或首拼的字符串 * @param Только firstspell 是否只获取首拼 , 为 True 时 , 只获取首拼 , 为 false 时 , 获取全拼 * @return String cnstr 的全拼或首拼, 如果 cnstr 为 null 时, 返回 "" */ public Static String getSpell (String cnstr, boolean onlyfirstspell) {if (cnstr == null) {return ""; } char [] chars = cnstr.trim (). toCharRary (); StringBuffer sb = new StringBuffer (); for (int i = 0, len = chars.length; i <len; i ++) {int ascii = getCnascii (chars [i]); if (ascii == 0) {// 如果获取汉字的 ascii 出错 , 则不进行转换 sb.append (chars [i]); } else {string spell = getSpellbyascii (ascii); // 根据 ascii 取拼音 if (spell == null || spell.length () == 0) {// 如果根据 ascii 取拼音没取到 , 则到生僻字 map 中取 spell = endommonwordsmap.get (chars [chars [chars [ я]); } if (spell == null || spell.length () == 0) {// 如果没有取到对应的拼音 , 则不做转换 , 追加原字符 spell = endermonwordsmap.get (chars [i]); } else {if (только firstSpell) {sb.Append (spell.StartSwith ("''")? spelt.substring (1, 2): spell.substring (0, 1)); } else {sb.append (spell); }}}} // конец для возврата sb.toString (); } public static void main (string [] args) {string [] s = {"获取汉字全拼和首拼测试", "Это тест", "a, b; c [d]", "标 ,点。 "," 圆角数字123 ,%― …… "," 繁体字 : 西安 "," 西安 "," 山 "}; for (int i = 0; i <s.length; i ++) {long l1 = system.currenttimemillis (); System.out.println (s [i] + "的全拼:" + getspell (s [i], false)); System.out.println (s [i] + "的首拼:" + getspell (s [i], true)); System.out.println ("获取全拼和首拼 共 用了"+(System.CurrentTimeMillis ()-L1)+"毫秒/N"); }}}