Python论坛  - 讨论区

标题:Re: [python-chinese] 关于unicode的问题

2005年06月27日 星期一 13:17

=?GB2312?B?hKLA2g==?= liul at dhc.com.cn
Mon Jun 27 13:17:53 HKT 2005

#!/usr/bin/python
# -*- coding: MS932 -*-
# Filename:TestCheckUtil.py

def is_full_number(input):
    if not input:
        return False
    for c in input:
        print "%s"%[c]
        if not u'\uff10' <= c <= u'\uff19':
            return False
    return True

if "__main__" == __name__:
    a = u'¤¿¤Ê¤«'
    print type(a), repr(a)
Êä³ö£º '\u305f\u306a\u304b'

µ«Èç¹û°Ñencoding¸ÄΪcp936£¬ÔòÊä³ö£º
 u'\u5068\u5074\u5050'

ÄÉÃÆ£¬Èç¹û¶¼ÊÇunicode±àÂ룬Ôõô»á²»Ò»ÑùÄØ£¿

Çë½Ì£¬²»Ê¤¸Ð¼¤£¡

----- Original Message -----
From: "limodou" <limodou at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Monday, June 27, 2005 12:34 PM
Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ


> ÔÚ 05-6-27£¬limodou<limodou at gmail.com> дµÀ£º
> > 'ÌïÖÐ'ÔÚPythonÖеıàÂëÊÇ£º
> > '\xcc\xef\xd6\xd0'
> > ÄÇôu'ÌïÖÐ'µÄÖµÊÇ£º
> > u'\xcc\xef\xd6\xd0'
> > ÕâÆäʵÊÇ°Ñ'ÌïÖÐ'µÄgbÂëת³ÉÁËunicode£¬¶ø²»ÊÇÎÒÃÇÕæÕýÏëÒªµÄunicodeÂ룬ÕýÈ·
µÄת»»Ó¦¸ÃÊÇ£º
> >  >>> unicode('ÌïÖÐ', 'cp936')
> >  u'\u7530\u4e2d'
> > ÕâÑù²Å¶Ô¡£
> >
> > µ«Èç¹ûÄãÔÚpythonµÄ³ÌÐòÀïÈ´¿ÉÒÔÖ±½Ó½«u'ÌïÖÐ'ת³Éunicode£¬È磺a.py
> > #coding=cp936
> > a=u'ÌïÖÐ'
> > print type(a), repr(a)
> >
> > Ö´Ðнá¹ûÊÇ:
> >  u'\u9422\u9881\u8151'
>
> ´Ë½á¹ûÓÐÎó£¬Ó¦¸ÃÊÇ£º
>
>  u'\u7530\u4e2d'
>
> ÉÏÃæ´íÎóµÄ½á¹ûÊÇÒòΪÎÒµÄÎļþ±àÂëÊÇutf-8ÁË£¬²»ÊÇcp936¡£
>
> >
> > ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > > str = u"ÌïÖÐ"
> > > for c in str:
> > >     # ÄÇôcµÄ´æ´¢¸ñʽÊÇʲô£¿
> > >     # ±ÈÈçÏÂÃæÔÚIDLEÖÐÊÔÑ飺
> > >     # >>> c = tuple(u"ÌïÖÐ")
> > >     # >>> c
> > >     # (u'\x93', u'c', u'\x92', u'\x86')
> > >     # ´ËʱcÖд洢µÄÊÇasciiÂë
> > >
> > >     # Èç¹ûÒ²ÊÇ°´ÕÕasciiÂë´æ´¢µÄ£¬ÄÇôΪʲôʹÓÃpring "%s" %[c]´òÓ¡³öÀ´
µÄÓÖÊÇ
> > > unicodeÖµ£¨Èç[u'\u308f']£©ÄØ£¬
> > >     # ¶øÇÒ²»ÄÜÖ±½ÓʹÓÃprint c£¬»á³ö´í£¬²»½â
> > >
> > > Çë½ÌÒÔÉÏÎÊÌ⣬²»Ê¤¸Ð¼¤£¡
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> > --
> > I like python!
> > My Donews Blog: http://www.donews.net/limodou
> > New Google Maillist: http://groups-beta.google.com/group/python-cn
> >
>
>
> --
> I like python!
> My Donews Blog: http://www.donews.net/limodou
> New Google Maillist: http://groups-beta.google.com/group/python-cn
>


----------------------------------------------------------------------------
----


> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月27日 星期一 13:39

limodou limodou at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gcHl0aG9uLWNoaW5lc2UgbGlzdAo+ID4gcHl0
aG9uLWNoaW5lc2VAbGlzdHMucHl0aG9uLmNuCj4gPiBodHRwOi8vcHl0aG9uLmNuL21haWxtYW4v
bGlzdGluZm8vcHl0aG9uLWNoaW5lc2UKPiA+Cj4gCj4gCgoKLS0gCkkgbGlrZSBweXRob24hIApN
eSBEb25ld3MgQmxvZzogaHR0cDovL3d3dy5kb25ld3MubmV0L2xpbW9kb3UKTmV3IEdvb2dsZSBN
YWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5jb20vZ3JvdXAvcHl0aG9uLWNuCg==

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月27日 星期一 13:53

=?GB2312?B?hKLA2g==?= liul at dhc.com.cn
Mon Jun 27 13:53:38 HKT 2005

From: "limodou" Èç¹ûÎļþ±àÂëÊÇÒ»ÖÖÈçcp936£¬¶øcoding²»Í¬¡£ÄÇôת³öÀ´µÄunicode
Ò²²»Í¬¡£
ÄѵÀ˵²»Í¬µÄϵͳӵÓв»Í¬unicode±ê×¼£¬ÄÇhttp://www.unicode.org±ê×¼²»¾Í¿ÕÁËÂð
£¿


----- Original Message -----
From: "limodou" <limodou at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Monday, June 27, 2005 1:39 PM
Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ


> ºÇºÇ¡£ÒòΪµ±codingÉèÖò»Í¬Ê±£¬pythonÔÚ´¦Àíʱ»á°´ÕÕcodingָʾµÄ±àÂë½øÐÐת
»»¡£ÎÒ²»ÖªµÀÄãµÄ¹¤×÷ ƽ̨ÊÇʲô£¬ÕýÈ·µÄ±£´æÔ´ÎļþµÄ×ö·¨ÊÇ£º
>
> °´ÕÕcodingÖÐÉèÖõıàÂëÀ´±£´æÎļþ¡£Ò²¾ÍÊÇ˵£ºÈç¹ûÄãµÄÎļþ±àÂëÊÇcp936£¬ÄÇô
Äã°´gbÂë±£´æ¾Í¿ÉÒÔ¡£Èç¹ûÊÇutf-8£¬ÄÇôÐèÒª°´utf-8±£´æ¡£Èç¹ûÊDZðµÄ£¬ÐèÒª°´±ðµÄ
±àÂëÀ´±£´æ¡£¶ø²»ÄÜ£¬codingдµÄÊÇÒ»ÖÖ£¬µ«È´Ê¹ÓÃÆäËüµÄ±àÂ뷽ʽÀ´±£´æ¡£ÕæÕýµÄÎÄ
¼þ±àÂëÓëcodingÖеÄָʾҪ¶ÔÓ¦¡£
>
> Èç¹ûÎļþ±àÂëÊÇÒ»ÖÖÈçcp936£¬¶øcoding²»Í¬¡£ÄÇôת³öÀ´µÄunicodeÒ²²»Í¬¡£
>
> ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > #!/usr/bin/python
> > # -*- coding: MS932 -*-
> > # Filename:TestCheckUtil.py
> >
> > def is_full_number(input):
> >     if not input:
> >         return False
> >     for c in input:
> >         print "%s"%[c]
> >         if not u'\uff10' <= c <= u'\uff19':
> >             return False
> >     return True
> >
> > if "__main__" == __name__:
> >     a = u'¤¿¤Ê¤«'
> >     print type(a), repr(a)
> > Êä³ö£º '\u305f\u306a\u304b'
> >
> > µ«Èç¹û°Ñencoding¸ÄΪcp936£¬ÔòÊä³ö£º
> >  u'\u5068\u5074\u5050'
> >
> > ÄÉÃÆ£¬Èç¹û¶¼ÊÇunicode±àÂ룬Ôõô»á²»Ò»ÑùÄØ£¿
> >
> > Çë½Ì£¬²»Ê¤¸Ð¼¤£¡
> >
> > ----- Original Message -----
> > From: "limodou" <limodou at gmail.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Monday, June 27, 2005 12:34 PM
> > Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ
> >
> > > ÔÚ 05-6-27£¬limodou<limodou at gmail.com> дµÀ£º
> > > > 'ÌïÖÐ'ÔÚPythonÖеıàÂëÊÇ£º
> > > > '\xcc\xef\xd6\xd0'
> > > > ÄÇôu'ÌïÖÐ'µÄÖµÊÇ£º
> > > > u'\xcc\xef\xd6\xd0'
> > > > ÕâÆäʵÊÇ°Ñ'ÌïÖÐ'µÄgbÂëת³ÉÁËunicode£¬¶ø²»ÊÇÎÒÃÇÕæÕýÏëÒªµÄunicodeÂ룬
ÕýÈ·
> > µÄת»»Ó¦¸ÃÊÇ£º
> > > >  >>> unicode('ÌïÖÐ', 'cp936')
> > > >  u'\u7530\u4e2d'
> > > > ÕâÑù²Å¶Ô¡£
> > > >
> > > > µ«Èç¹ûÄãÔÚpythonµÄ³ÌÐòÀïÈ´¿ÉÒÔÖ±½Ó½«u'ÌïÖÐ'ת³Éunicode£¬È磺a.py
> > > > #coding=cp936
> > > > a=u'ÌïÖÐ'
> > > > print type(a), repr(a)
> > > >
> > > > Ö´Ðнá¹ûÊÇ:
> > > >  u'\u9422\u9881\u8151'
> > >
> > > ´Ë½á¹ûÓÐÎó£¬Ó¦¸ÃÊÇ£º
> > >
> > >  u'\u7530\u4e2d'
> > >
> > > ÉÏÃæ´íÎóµÄ½á¹ûÊÇÒòΪÎÒµÄÎļþ±àÂëÊÇutf-8ÁË£¬²»ÊÇcp936¡£
> > >
> > > >
> > > > ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > > > > str = u"ÌïÖÐ"
> > > > > for c in str:
> > > > >     # ÄÇôcµÄ´æ´¢¸ñʽÊÇʲô£¿
> > > > >     # ±ÈÈçÏÂÃæÔÚIDLEÖÐÊÔÑ飺
> > > > >     # >>> c = tuple(u"ÌïÖÐ")
> > > > >     # >>> c
> > > > >     # (u'\x93', u'c', u'\x92', u'\x86')
> > > > >     # ´ËʱcÖд洢µÄÊÇasciiÂë
> > > > >
> > > > >     # Èç¹ûÒ²ÊÇ°´ÕÕasciiÂë´æ´¢µÄ£¬ÄÇôΪʲôʹÓÃpring "%s" %[c]´òÓ¡
³öÀ´
> > µÄÓÖÊÇ
> > > > > unicodeÖµ£¨Èç[u'\u308f']£©ÄØ£¬
> > > > >     # ¶øÇÒ²»ÄÜÖ±½ÓʹÓÃprint c£¬»á³ö´í£¬²»½â
> > > > >
> > > > > Çë½ÌÒÔÉÏÎÊÌ⣬²»Ê¤¸Ð¼¤£¡
> > > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > > --
> > > > I like python!
> > > > My Donews Blog: http://www.donews.net/limodou
> > > > New Google Maillist: http://groups-beta.google.com/group/python-cn
> > > >
> > >
> > >
> > > --
> > > I like python!
> > > My Donews Blog: http://www.donews.net/limodou
> > > New Google Maillist: http://groups-beta.google.com/group/python-cn
> > >
> >
>
> --------------------------------------------------------------------------
--
> > ----
> >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
>
>
> --
> I like python!
> My Donews Blog: http://www.donews.net/limodou
> New Google Maillist: http://groups-beta.google.com/group/python-cn
>


----------------------------------------------------------------------------
----


> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月27日 星期一 14:03

limodou limodou at gmail.com
Mon Jun 27 14:03:53 HKT 2005

v7TAtMTjw7vT0MDtveLO0rXE0uLLvKGjdW5pY29kZbWxyLvKx9a709DSu9bWwcuho7WrY29kaW5n
ysfIy9C0tcSjrNLytMvL/L/JxNzQtLXD0+vOxLz+1ebV/bXEseDC68rH0rvR+bXEo6zSsr/J0tTQ
tLPJsrvT687EvP61xLHgwuvKx9K70fm1xKGjscjI56O6xOO1xLPM0PLKudPDTVM5MzKx4MLro6zE
x8O0xOOxo7TmzsS8/sqxv8nS1LC0Y3A5Mzaxo7Tmo6zSsr/J0tSwtE1TOTMysaO05qGjyOe5+7Gj
tOazyU1TOTMyxMfDtMu1w/fE47XEzsS8/tXm1f21xLHgwuv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oaW5lc2UgbGlzdAo+ID4gcHl0aG9uLWNoaW5lc2VAbGlzdHMucHl0aG9uLmNuCj4gPiBodHRw
Oi8vcHl0aG9uLmNuL21haWxtYW4vbGlzdGluZm8vcHl0aG9uLWNoaW5lc2UKPiA+Cj4gCj4gCgoK
LS0gCkkgbGlrZSBweXRob24hIApNeSBEb25ld3MgQmxvZzogaHR0cDovL3d3dy5kb25ld3MubmV0
L2xpbW9kb3UKTmV3IEdvb2dsZSBNYWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5j
b20vZ3JvdXAvcHl0aG9uLWNuCg==

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月27日 星期一 14:20

=?GB2312?B?hKLA2g==?= liul at dhc.com.cn
Mon Jun 27 14:20:49 HKT 2005

Ã÷°×ÁË£¬ºÕºÕ£¬Ó¦¸Ã˵£¬ÖÕÓÚÃ÷°×ÁË£¬·Ç³£¸Ðл£¡

----- Original Message -----
From: "limodou" <limodou at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Monday, June 27, 2005 2:03 PM
Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ


> ¿´À´ÄãûÓÐÀí½âÎÒµÄÒâ˼¡£unicodeµ±È»ÊÇÖ»ÓÐÒ»ÖÖÁË¡£µ«codingÊÇÈËдµÄ£¬Òò´ËËü
¿ÉÄÜдµÃÓëÎļþÕæÕýµÄ±àÂëÊÇÒ»ÑùµÄ£¬Ò²¿ÉÒÔд³É²»ÓëÎļþµÄ±àÂëÊÇÒ»ÑùµÄ¡£±ÈÈ磺Äã
µÄ³ÌÐòʹÓÃMS932±àÂ룬ÄÇôÄã±£´æÎļþʱ¿ÉÒÔ°´cp936±£´æ£¬Ò²¿ÉÒÔ°´MS932±£´æ¡£Èç
¹û±£´æ³ÉMS932ÄÇô˵Ã÷ÄãµÄÎļþÕæÕýµÄ±àÂëÓëcodingµÄÉùÃ÷ÊÇÒ»Öµģ¬Òò´ËÔÙת»Ø
Unicode¾ÍÊÇÕýÈ·µÄ¡£µ«ÄãµÄÎļþÈçºÎ°´cp936À´±£´æ£¬ÕâÑù¾ÍÓëcodingÉùÃ÷ÊDz»Ò»Ñù
µÄ£¬ÔÙת»Øunicode¾Í²»¶ÔÁË¡£
>
> ÎÒÓʼþÖкóÃæµÄ»°¾ÍÊÇÕâÑùÒâ˼¡£codingÊÇΪÁËÈÃpythonÖªµÀÄãµÄÎļþʹÓõÄÊÇʲô
±àÂ룬ÄÇôÄã±£´æÎļþʱ¾ÍÒ»¶¨ÒªÊ¹ÓÃÕâ¸ö±àÂë¡£³ý·Ç¶¼ÊÇasciiÂ룬²»È»ºÜÓпÉÄܳö
´í¡£
>
> ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > From: "limodou" Èç¹ûÎļþ±àÂëÊÇÒ»ÖÖÈçcp936£¬¶øcoding²»Í¬¡£ÄÇôת³öÀ´µÄ
unicode
> > Ò²²»Í¬¡£
> > ÄѵÀ˵²»Í¬µÄϵͳӵÓв»Í¬unicode±ê×¼£¬ÄÇhttp://www.unicode.org±ê×¼²»¾Í¿Õ
ÁËÂð
> > £¿
> >
> > ----- Original Message -----
> > From: "limodou" <limodou at gmail.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Monday, June 27, 2005 1:39 PM
> > Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ
> >
> > > ºÇºÇ¡£ÒòΪµ±codingÉèÖò»Í¬Ê±£¬pythonÔÚ´¦Àíʱ»á°´ÕÕcodingָʾµÄ±àÂë½øÐÐ
ת
> > »»¡£ÎÒ²»ÖªµÀÄãµÄ¹¤×÷ ƽ̨ÊÇʲô£¬ÕýÈ·µÄ±£´æÔ´ÎļþµÄ×ö·¨ÊÇ£º
> > >
> > > °´ÕÕcodingÖÐÉèÖõıàÂëÀ´±£´æÎļþ¡£Ò²¾ÍÊÇ˵£ºÈç¹ûÄãµÄÎļþ±àÂëÊÇcp936£¬
ÄÇô
> > Äã°´gbÂë±£´æ¾Í¿ÉÒÔ¡£Èç¹ûÊÇutf-8£¬ÄÇôÐèÒª°´utf-8±£´æ¡£Èç¹ûÊDZðµÄ£¬ÐèÒª°´
±ðµÄ
> > ±àÂëÀ´±£´æ¡£¶ø²»ÄÜ£¬codingдµÄÊÇÒ»ÖÖ£¬µ«È´Ê¹ÓÃÆäËüµÄ±àÂ뷽ʽÀ´±£´æ¡£ÕæÕý
µÄÎÄ
> > ¼þ±àÂëÓëcodingÖеÄָʾҪ¶ÔÓ¦¡£
> > >
> > > Èç¹ûÎļþ±àÂëÊÇÒ»ÖÖÈçcp936£¬¶øcoding²»Í¬¡£ÄÇôת³öÀ´µÄunicodeÒ²²»Í¬¡£
> > >
> > > ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > > > #!/usr/bin/python
> > > > # -*- coding: MS932 -*-
> > > > # Filename:TestCheckUtil.py
> > > >
> > > > def is_full_number(input):
> > > >     if not input:
> > > >         return False
> > > >     for c in input:
> > > >         print "%s"%[c]
> > > >         if not u'\uff10' <= c <= u'\uff19':
> > > >             return False
> > > >     return True
> > > >
> > > > if "__main__" == __name__:
> > > >     a = u'¤¿¤Ê¤«'
> > > >     print type(a), repr(a)
> > > > Êä³ö£º '\u305f\u306a\u304b'
> > > >
> > > > µ«Èç¹û°Ñencoding¸ÄΪcp936£¬ÔòÊä³ö£º
> > > >  u'\u5068\u5074\u5050'
> > > >
> > > > ÄÉÃÆ£¬Èç¹û¶¼ÊÇunicode±àÂ룬Ôõô»á²»Ò»ÑùÄØ£¿
> > > >
> > > > Çë½Ì£¬²»Ê¤¸Ð¼¤£¡
> > > >
> > > > ----- Original Message -----
> > > > From: "limodou" <limodou at gmail.com>
> > > > To: <python-chinese at lists.python.cn>
> > > > Sent: Monday, June 27, 2005 12:34 PM
> > > > Subject: Re: [python-chinese] ¹ØÓÚunicodeµÄÎÊÌâ
> > > >
> > > > > ÔÚ 05-6-27£¬limodou<limodou at gmail.com> дµÀ£º
> > > > > > 'ÌïÖÐ'ÔÚPythonÖеıàÂëÊÇ£º
> > > > > > '\xcc\xef\xd6\xd0'
> > > > > > ÄÇôu'ÌïÖÐ'µÄÖµÊÇ£º
> > > > > > u'\xcc\xef\xd6\xd0'
> > > > > > ÕâÆäʵÊÇ°Ñ'ÌïÖÐ'µÄgbÂëת³ÉÁËunicode£¬¶ø²»ÊÇÎÒÃÇÕæÕýÏëÒªµÄunicode
Â룬
> > ÕýÈ·
> > > > µÄת»»Ó¦¸ÃÊÇ£º
> > > > > >  >>> unicode('ÌïÖÐ', 'cp936')
> > > > > >  u'\u7530\u4e2d'
> > > > > > ÕâÑù²Å¶Ô¡£
> > > > > >
> > > > > > µ«Èç¹ûÄãÔÚpythonµÄ³ÌÐòÀïÈ´¿ÉÒÔÖ±½Ó½«u'ÌïÖÐ'ת³Éunicode£¬È磺a.py
> > > > > > #coding=cp936
> > > > > > a=u'ÌïÖÐ'
> > > > > > print type(a), repr(a)
> > > > > >
> > > > > > Ö´Ðнá¹ûÊÇ:
> > > > > >  u'\u9422\u9881\u8151'
> > > > >
> > > > > ´Ë½á¹ûÓÐÎó£¬Ó¦¸ÃÊÇ£º
> > > > >
> > > > >  u'\u7530\u4e2d'
> > > > >
> > > > > ÉÏÃæ´íÎóµÄ½á¹ûÊÇÒòΪÎÒµÄÎļþ±àÂëÊÇutf-8ÁË£¬²»ÊÇcp936¡£
> > > > >
> > > > > >
> > > > > > ÔÚ 05-6-27£¬„¢ÀÚ<liul at dhc.com.cn> дµÀ£º
> > > > > > > str = u"ÌïÖÐ"
> > > > > > > for c in str:
> > > > > > >     # ÄÇôcµÄ´æ´¢¸ñʽÊÇʲô£¿
> > > > > > >     # ±ÈÈçÏÂÃæÔÚIDLEÖÐÊÔÑ飺
> > > > > > >     # >>> c = tuple(u"ÌïÖÐ")
> > > > > > >     # >>> c
> > > > > > >     # (u'\x93', u'c', u'\x92', u'\x86')
> > > > > > >     # ´ËʱcÖд洢µÄÊÇasciiÂë
> > > > > > >
> > > > > > >     # Èç¹ûÒ²ÊÇ°´ÕÕasciiÂë´æ´¢µÄ£¬ÄÇôΪʲôʹÓÃpring "%s" %[c]
´òÓ¡
> > ³öÀ´
> > > > µÄÓÖÊÇ
> > > > > > > unicodeÖµ£¨Èç[u'\u308f']£©ÄØ£¬
> > > > > > >     # ¶øÇÒ²»ÄÜÖ±½ÓʹÓÃprint c£¬»á³ö´í£¬²»½â
> > > > > > >
> > > > > > > Çë½ÌÒÔÉÏÎÊÌ⣬²»Ê¤¸Ð¼¤£¡
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > python-chinese list
> > > > > > > python-chinese at lists.python.cn
> > > > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > I like python!
> > > > > > My Donews Blog: http://www.donews.net/limodou
> > > > > > New Google Maillist:
http://groups-beta.google.com/group/python-cn
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > I like python!
> > > > > My Donews Blog: http://www.donews.net/limodou
> > > > > New Google Maillist: http://groups-beta.google.com/group/python-cn
> > > > >
> > > >
> > >
> >
> --------------------------------------------------------------------------
> > --
> > > > ----
> > > >
> > > > > _______________________________________________
> > > > > python-chinese list
> > > > > python-chinese at lists.python.cn
> > > > > http://python.cn/mailman/listinfo/python-chinese
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > I like python!
> > > My Donews Blog: http://www.donews.net/limodou
> > > New Google Maillist: http://groups-beta.google.com/group/python-cn
> > >
> >
>
> --------------------------------------------------------------------------
--
> > ----
> >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
>
>
> --
> I like python!
> My Donews Blog: http://www.donews.net/limodou
> New Google Maillist: http://groups-beta.google.com/group/python-cn
>


----------------------------------------------------------------------------
----


> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月27日 星期一 14:47

Eric Hu eric.hu72 at gmail.com
Mon Jun 27 14:47:48 HKT 2005

Y29kaW5n1rjKvrXEysfE47XE1LTOxLz+tcSx4MLroaMKtPK49rHIt72jrHVuaWNvZGW6w7HIysfS
u9bWysC959Pvo6zKx7PM0PLE2rK/tKbA7cq508O1xKOsusO0psrHs8zQ8rK7sdjU2cf4t9ayu82s
tcTT79HUwLS31rHwtKbA7cHLoaO1q8rHzsTX1rzHwry1xMqxuvKjrMTju+HTw9bQzsSjrLvy1d/T
os7Etci1yLK7zay3vcq9wLS8x8K80MXPoqOs1eLKsbryxOPSqta4w/fOxLz+yrnTw7XE0+/R1KOs
t72x48jtvP7Ptc2ztsHI687EvP7Ns9K716q7u7PJysC959PvoaPI57n7xOO45svfz7XNs87StcTO
xLz+ysfTw7XE1tDOxKOsv8nKx8q1vMrJz8i0ysfI1c7Eo6zEx8O0yO28/s+1zbPXqru7tcTKsbry
19TIu7vhs/bP1rTtzvPBy6GjCrK71qq1wMu1w/ew18HLw7vT0KGjCgrU2iAwNS02LTI3o6yEosDa
PGxpdWxAZGhjLmNvbS5jbj4g0LS1wKO6Cj4gRnJvbTogImxpbW9kb3UiIMjnufvOxLz+seDC68rH
0rvW1sjnY3A5MzajrLb4Y29kaW5nsrvNrKGjxMfDtNeqs/bAtLXEdW5pY29kZQo+INKysrvNrKGj
Cj4gxNG1wMu1srvNrLXEz7XNs9O109Cyu82sdW5pY29kZbHq17yjrMTHaHR0cDovL3d3dy51bmlj
b2RlLm9yZ7Hq17yyu77Nv9XBy8LwCj4go78KPgo=

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号