[python-chinese] [CPyUG:38184] 中文繁简转换
Li Qingfeng
liqfemail在gmail.com
星期五 一月 11 18:50:08 HKT 2008
u"¶þ¼«¹Ü": u"¶þOów",
u"¶þO¹Ü": u"¶þOów",
u"Èý¼«¹Ü": u"ÈýOów",
u"ÈýO¹Ü": u"ÈýOów",
u"Èí¼þ": u"Üów",
u"ܼþ": u"Üów",
u"ÍøÂç": u"¾W·",
u"¾W½j": u"¾W·",
¿´µ½¸Ã´Ê±íÀïÃæÓÐÕâ¸ö£¬Ó¦¸Ã¿ÉÒԵġ£
ÔÚ08-1-11£¬Çå·ç <paradise.qingfeng在gmail.com> дµÀ£º
>
> ÊÇ·ñÓÐÓïÒâµÄת»»£¿ÀýÈç¼òÌå½ÐÈí¼þ£¬·±ÌåÓû§¶à½ÐÈíÌå
>
> 2008/1/11 Xie Yanbo <xieyanbo在gmail.com>:
> > ×î½üÔÚ¿ª·¢ÖÐÎÄ·±¼òת»»µÄpythonÄ£¿é£¬ÒѾ³õ²½Íê³ÉÁËÒ»¸ö´¿pythonµÄÔÐÍ[1]£¬
> > ¿ÉÒÔʵÏÖunicode×Ö·û´®×ª»»³É¼òÌå»ò·±ÌåµÄ¹¦ÄÜ¡£·±¼òÓ³Éä±íÀ´×ÔÓÚά»ù°Ù¿ÆµÄ
> > mediawiki´úÂë¡£
> >
> > [1] http://pyswim.googlecode.com/files/langconv-0.0.1dev.tgz
> >
> > Ò»¸öʹÓõÄÀý×Ó£º
> > >>> from langconv import *
> > >>> c=Converter('zh-hant')
> > >>> c.convert(u'ºº×Ö')
> > u'\u6f22\u5b57'
> > >>> print c.convert(u'ºº×Ö')
> > h×Ö
> > >>> print c.convert(u'ÖÐÎÄ·±¼òת»»')
> > ÖÐÎÄ·±ºÞDQ
> > >>> print Converter('zh-hans').convert(u'ÖÐÎÄ·±ºÞDQ')
> > ÖÐÎÄ·±¼òת»»
> >
> > ´úÂëºËÐÄÊÇÒ»¸ö״̬»ú£¬»ùÓÚ×î´ó³¤¶ÈÆ¥ÅäµÄËã·¨¡£
> >
> > ¿ÉÒÔÓÅ»¯µÄµØ·½»¹Óкܶ࣬ÏîĿĿ±êÊÇÄÜÌṩһ¸öcÓïÑÔµÄlib£¬ÒÔ¼°¶ÔÓ¦µÄpython¡¢
> > phpµÈ°ü×°¡£µ«ÓÉÓÚ×î½ü˽ÈËÊÂÇé±È½Ï¶à£¬ÔÝʱÎÞ·¨¼ÌÐø£¬ÏȷųöÀ´Çë´ó¼ÒÖ¸µã£¬
> > »¶Ó¸÷ÖÖÌÖÂÛ¡£
> >
> > --~--~---------~--~----~------------~-------~--~----~
> > '''ÓʼþÀ´×ÔGroups "python-cn"--China Py User Group
> > ÏêÇé: http://groups-beta.google.com/group/python-cn
> > ·¢ÑÔ: python-cn在googlegroups.com
> > Í˶©: python-cn-unsubscribe在googlegroups.com
> > ά»ù: http://wiki.woodpecker.org.cn/moin/CPUG
> > Öé½ÊÂÎñ: http://groups.google.com/group/zpug
> > ¶«ÄÏÊÂÎñ: http://groups.google.com/group/cpug-eastchina
> > ±±¾©ÊÂÎñ: http://groups.google.com/group/bpug
> > ÖйúÊÂÎñ: http://groups.google.com/group/CPUG
> > ͬÖÊÁбí: http://python.cn/mailman/listinfo/python-chinese
> > '''
> > -~----------~----~----~----~------~----~------~--~---
> >
> >
>
>
>
> --
> http://qingfeng.ushared.com/blog/
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080111/4165f583/attachment.html
关于邮件列表 python-chinese 的更多信息