Python论坛  - 讨论区

标题:[python-chinese] unicode是两个字符的,还是变长的(双字节的倍数)?

2007年04月13日 星期五 11:12

breezef breezef在gmail.com
星期五 四月 13 11:12:32 HKT 2007

This is a multi-part message in MIME format.

--=====003_Dragon668840427011_=====
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: base64

tPPPwKOssLTE47XEt723qL/J0tS198rUo6y1q8rH1rvE3MrHu+Ox4Ly2tcS198rUt723qKOsxNyy
u8TctffK1NS0tPrC66O/DQogDQrO0rXEcHl0aG9utffTw7nYz7XOqg0KICAgICBweXRob24uZXhl
ILX308MgYnVybi5ieQ0KICAgICAgICBidXJuLmJ5ILX308MgcnVuLmV4ZQ0KICAgIHJ1bi5leGXA
78PmtffTw1B5UnVuX1NpbXBsZUZpbGVFeEZsYWdzvdO/2tTL0NDEv7XEcHl0aG9uvcWxvqOsZGVz
dC5weQ0KICAgIM/W1NrW99Kqz+u198rUcnVuLmV4ZSC6zWRlc3QucHkgo6zT0MO709Cw7LeooaOh
oyDKrrfW0LvQu35+DQoNCg0KDQpPbiA0LzEyLzA3LCBmZW5nd2VpIDxmZW5nd2VpMzFAZ21haWwu
Y29tPiB3cm90ZToNCj4gtffK1LPM0PLJ6M6qUHl0aG9uLmV4ZbrzIKOszOHKvs6qzrTWqrPM0PJ+
fn5+DQo+IMfz1vqjrMTcsrvE3M/qz7i1435+fg0KPg0KDQrE49KquPjSu7j2vvi21MK3vrawoaGj
sci3vcu1QzpcUHl0aG9uMjVccHl0aG9uLmV4ZQ0KDQoNCsjnufvE47X3ytS1xMqxuvKyu9KquPq1
vXB5dGhvbrXEtPrC68Dvo6zEx8TjsNFweXRob24yNS5saWK4tNbG0ru33aOsw/zD+86qcHl0aG9u
MjVkLmxpYqOs1NnBtL3T06a4w77Nv8nS1MHLoaMNCsjnufvE47X3ytS1xMqxuvLP69KquPq1vXB5
dGhvbrXEtPrC68Dvo6zEx8Tj0qrX1Ly608NweXRob261xNS0tPrC67Hg0uvSu7j2c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ob24uZXhl
PC9ESVY+DQo8RElWPiZuYnNwOzwvRElWPg0KPERJVj48QlI+yOe5+8TjtffK1LXEyrG68rK70qq4
+rW9cHl0aG9utcS0+sLrwO+jrMTHxOOw0XB5dGhvbjI1LmxpYri01sbSu7fdo6zD/MP7zqpweXRo
b24yNWQubGlio6zU2cG0vdPTprjDvs2/ydLUwcuhozxCUj7I57n7xOO198rUtcTKsbryz+vSqrj6
tb1weXRob261xLT6wuvA76OsxMfE49Kq19S8utPDcHl0aG9utcTUtLT6wuux4NLr0ru49nB5dGhv
bjI1ZC5saWI8L0RJVj4NCjxESVY+Jm5ic3A7PC9ESVY+DQo8RElWPi0tPEJSPkJlc3QgUmVnYXJk
cyw8QlI+TGVvIEpheTwvRElWPg0KPERJVj48Rk9OVCBmYWNlPVZlcmRhbmEgc2l6ZT0yPjwvRk9O
VD4mbmJzcDs8L0RJVj4NCjxESVYgYWxpZ249bGVmdD4NCjxESVYgYWxpZ249bGVmdD48Rk9OVCBm
YWNlPVZlcmRhbmEgc2l6ZT0yPg0KPEhSIHN0eWxlPSJXSURUSDogMTIycHg7IEhFSUdIVDogMnB4
IiBTSVpFPTI+DQo8L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIGNvbG9yPSNjMGMwYzA+PEZPTlQg
ZmFjZT1WZXJkYW5hIHNpemU9Mj5icmVlemVmPC9GT05UPjwvRElWPg0KPERJVj48Rk9OVCBmYWNl
PVZlcmRhbmEgc2l6ZT0yPjIwMDctMDQtMTM8L0ZPTlQ+PC9GT05UPjwvRElWPjwvRElWPg0KPERJ
Vj48Rk9OVCBmYWNlPVZlcmRhbmEgc2l6ZT0yPjwvRk9OVD4mbmJzcDs8L0RJVj48L0JPRFk+PC9I
VE1MPg0K

--=====003_Dragon668840427011_=====--


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

2007年04月13日 星期五 11:17

Ben Luo benluo在gmail.com
星期五 四月 13 11:17:21 HKT 2007

Ç¿ÁÒ½¨Òé´ó¼Ò×° 64 decode program. :P
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070413/1a47ca9b/attachment.html 

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

2007年04月13日 星期五 11:29

Zoom.Quiet zoom.quiet在gmail.com
星期五 四月 13 11:29:46 HKT 2007

On 4/13/07, Adieu <adieu在adieu.cn> wrote:
>
>
> On 4/13/07, Zoom. Quiet <zoom.quiet在gmail.com> wrote:
> > On 4/13/07, Adieu <adieu在adieu.cn> wrote:
> > >
> unicode的问题可能是新人都会遇到的问题,我前段时间也迷茫了好一阵。不管这次讨论的结果是什么,建议整理一份东西到wiki中。这样下次有新加入的人弄不明白了,大家就可以说,你先去wiki上看了再看看有什么不明白的再问,效率就高了。避免老大们同样的话说N次,呵呵。
> > >
> > 是也乎,快速组织了一下
> > http://wiki.woodpecker.org.cn/moin/PythonicUnicode
> >
> > 其实啄木鸟维基中有关文章是很有积累的,
> > 大家帮忙看总结的图谱是否够用?!
>
>  ZoomQ老大真是优秀的行动者啊,相比之下我这个光说不练的就很惭愧了
> 不过还好我也有借口,还没啄木鸟的编辑权限,呵呵
> 老大看到帮我开一下吧,用户名还是Adieu
咔咔咔!没有关系,只要吼一声,就可以获得的!
关注权限组页面: http://wiki.woodpecker.org.cn/moin/TrustedGroup

只要没有自个儿的帐号,就来列表吼一声,就好 ;)


>
> _______________________________________________
> 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
>


-- 
'''Time is unimportant, only life important!
http://zoomquiet.org
blog在http://blog.zoomquiet.org/pyblosxom/
wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet
scrap在http://floss.zoomquiet.org
douban在http://www.douban.com/people/zoomq/
____________________________________
Pls. use OpenOffice.org to replace M$ Office.
     http://zh.openoffice.org
Pls. use 7-zip to replace WinRAR/WinZip.
     http://7-zip.org/zh-cn/
You can get the truely Freedom 4 software.
'''

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

2007年04月13日 星期五 11:38

jessinio smith jessinio在gmail.com
星期五 四月 13 11:38:17 HKT 2007

ºðÒ»Éù£¿£¿


ÎÒºðËûÌýµÃµ½Âð£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070413/cd741322/attachment.htm 

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

2007年04月13日 星期五 14:42

头太晕 torrycn在gmail.com
星期五 四月 13 14:42:53 HKT 2007

ÔÚ07-4-9£¬jessinio smith <jessinio在gmail.com> дµÀ£º
>
> ²»»á°É¡£2^32ÓÐÊ®ÒÚÁË¡£
> ÍâÐÇÈ˵ÄÎÄ×ÖÏñÓ¢ÎÄÒ»Ñù£¬ÓÉ»ù±¾ÎÄ×Ö×é³ÉµÄ¾ÍÐÐÁË¡£



Ò²ÐíÍâÐÇÈ˵ÄÎÄ×Ö±ÈÖÐÎÄ»¹·¢´ï,ÄǾͱÈÖÐÎÄ»¹¶à,ÄÇÒ²Ðí¾ÍÐèÒª128λ»ò256λ²ÅÄÜÍêÈ«±íʾ³öÀ´.
¶øÇÒ,²»Í¬ÐÇÇòµÄÎÄ×ÖÒ²²»Ò»Ñù,ËùÒÔ,Òª±íʾÓîÖæÓïÑÔÖÐËùÓÐ×Ö·û,  ÏÖÔÚºÜÄÑϽáÂÛÐèÒª¶àÉÙλ»ò¶àÉÙ×Ö½Ú.

¹þ¹þ...ÔÙ´ÎÅÜÌâ~~~~~~~~~~~
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070412/a67cad96/attachment-0001.htm 

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

2007年04月18日 星期三 23:43

jay ggwjgg在gmail.com
星期三 四月 18 23:43:41 HKT 2007

看了1个小时了,还是不懂
明天看吧
这个专题 可以写成一个总结了 建议哪位牛人写吧

On 4/13/07, 头太晕 <torrycn at gmail.com> wrote:
>
>
>
> 在07-4-9,jessinio smith <jessinio at gmail.com> 写道:
> >
> > 不会吧。2^32有十亿了。
> > 外星人的文字像英文一样,由基本文字组成的就行了。
>
>
>
> 也许外星人的文字比中文还发达,那就比中文还多,那也许就需要128位或256位才能完全表示出来.
> 而且,不同星球的文字也不一样,所以,要表示宇宙语言中所有字符,  现在很难下结论需要多少位或多少字节.
>
> 哈哈...再次跑题~~~~~~~~~~~
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070418/d4fb4bf2/attachment.htm 

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

2007年04月19日 星期四 11:27

Frog isfrog在gmail.com
星期四 四月 19 11:27:04 HKT 2007

±§Ç¸¸÷룬°³ÕâÄñÖ»ÄÜmarkÒ»ÏÂ~

ÔÚ07-4-18£¬jay <ggwjgg在gmail.com> дµÀ£º
>
> ¿´ÁË1¸öСʱÁË,»¹ÊDz»¶®
> Ã÷Ìì¿´°É
> Õâ¸öרÌâ ¿ÉÒÔд³ÉÒ»¸ö×ܽáÁË ½¨ÒéÄÄλţÈËд°É
>
> On 4/13/07, Í·Ì«ÔÎ <torrycn在gmail.com> wrote:
>
> >
> >
> > ÔÚ07-4-9£¬jessinio smith < jessinio在gmail.com> дµÀ£º
> > >
> > > ²»»á°É¡£2^32ÓÐÊ®ÒÚÁË¡£
> > > ÍâÐÇÈ˵ÄÎÄ×ÖÏñÓ¢ÎÄÒ»Ñù£¬ÓÉ»ù±¾ÎÄ×Ö×é³ÉµÄ¾ÍÐÐÁË¡£
> >
> >
> >
> > Ò²ÐíÍâÐÇÈ˵ÄÎÄ×Ö±ÈÖÐÎÄ»¹·¢´ï,ÄǾͱÈÖÐÎÄ»¹¶à,ÄÇÒ²Ðí¾ÍÐèÒª128λ»ò256λ²ÅÄÜÍêÈ«±íʾ³öÀ´.
> > ¶øÇÒ,²»Í¬ÐÇÇòµÄÎÄ×ÖÒ²²»Ò»Ñù,ËùÒÔ,Òª±íʾÓîÖæÓïÑÔÖÐËùÓÐ×Ö·û,  ÏÖÔÚºÜÄÑϽáÂÛÐèÒª¶àÉÙλ»ò¶àÉÙ×Ö½Ú.
> >
> > ¹þ¹þ...ÔÙ´ÎÅÜÌâ~~~~~~~~~~~
> >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070419/ed5e405e/attachment.htm 

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

2007年04月19日 星期四 17:05

haur hekun06在gmail.com
星期四 四月 19 17:05:12 HKT 2007

ÄÇλ´óÄñ,×÷һͼµÄʵÀý²»ÊǸüºÃÂð,¶¼ÔÚÉì×Ų±×Óºðʲôѽ..
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070419/a7c70f8b/attachment.htm 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号