Python论坛  - 讨论区

标题:[python-chinese] django 转拼音问题

2007年11月08日 星期四 15:13

赵飞 mydjango在gmail.com
星期四 十一月 8 15:13:38 HKT 2007

ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô

±ÈÈç ³¤´º ת³ÉÁË che
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/b8070677/attachment.htm 

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

2007年11月08日 星期四 16:25

Ben Luo benluo在gmail.com
星期四 十一月 8 16:25:06 HKT 2007

On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:

> ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
>
> ±ÈÈç ³¤´º ת³ÉÁË che

code and module ÔÚÄÄ£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/aa993747/attachment-0001.htm 

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

2007年11月08日 星期四 16:45

clfff.peter clfff.peter在gmail.com
星期四 十一月 8 16:45:26 HKT 2007

Õâ¸öÄ£¿é½Ðɶ£¿^_^

ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
>
>
>
> On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
>
> > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> >
> > ±ÈÈç ³¤´º ת³ÉÁË che
>
> code and module ÔÚÄÄ£¿
>
>
>
> _______________________________________________
> 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/20071108/e68c88d5/attachment.htm 

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

2007年11月08日 星期四 16:53

赵飞 mydjango在gmail.com
星期四 十一月 8 16:53:15 HKT 2007

ÔÚÍøÉÏËÑË÷һϣ¬pythonÓÐÒ»¸öºº×ÖתƴÒôµÄÀý×Ó£¬ÓÐÒ»¸ö¶ÔÓ¦Êý¾Ý¿â¡£

ÏÖÔÚ²»ÖªµÀΪʲôÔÚdjango µÄmodelÖÐ ±àÂë²»ÖªµÀÄÄÓÐÎÊÌâÒ»Ö±´¦Àí²»ÁË¡£¡£¡£

ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com> дµÀ£º
>
> Õâ¸öÄ£¿é½Ðɶ£¿^_^
>
> ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
> >
> >
> >
> > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> >
> > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > >
> > > ±ÈÈç ³¤´º ת³ÉÁË che
> >
> > code and module ÔÚÄÄ£¿
> >
> >
> >
> > _______________________________________________
> > 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/20071108/e341397f/attachment-0001.htm 

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

2007年11月08日 星期四 17:01

clfff.peter clfff.peter在gmail.com
星期四 十一月 8 17:01:08 HKT 2007

Ê®·Ö±§Ç¸£¬ÎÒ¶ÔÍøÕ¾¿ª·¢Ò»Çϲ»Í¨£¬Ò»Ö±×öc++µÄ¡£½Ó´¥pythonÒ»¸öÔ£¬Ñ§Ï°ing¡£^_^

ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
>
> ÔÚÍøÉÏËÑË÷һϣ¬pythonÓÐÒ»¸öºº×ÖתƴÒôµÄÀý×Ó£¬ÓÐÒ»¸ö¶ÔÓ¦Êý¾Ý¿â¡£
>
> ÏÖÔÚ²»ÖªµÀΪʲôÔÚdjango µÄmodelÖÐ ±àÂë²»ÖªµÀÄÄÓÐÎÊÌâÒ»Ö±´¦Àí²»ÁË¡£¡£¡£
>
> ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com > дµÀ£º
> >
> > Õâ¸öÄ£¿é½Ðɶ£¿^_^
> >
> > ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
> > >
> > >
> > >
> > > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> > >
> > > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > > >
> > > > ±ÈÈç ³¤´º ת³ÉÁË che
> > >
> > > code and module ÔÚÄÄ£¿
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
>
>
> _______________________________________________
> 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/20071108/a3e48076/attachment.htm 

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

2007年11月08日 星期四 17:33

赵飞 mydjango在gmail.com
星期四 十一月 8 17:33:58 HKT 2007

½â¾öÁË¡£¡£¡£   ÎÒÔÎ ºÜÓôÃƵÄÒ»¸öÎÊÌâ   Ò»¸ö×Ö·ûÔÚpythonÇé¿öÏ len(str)=2
ÔÚdjangoÖÐlen(str=3)£¬ÕâÑù½«ÇиîµÄ²½³¤ÉèÖÃΪ3£¬¾Í¿ÉÒÔÕý³£×ª»»ÁË¡£

ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com> дµÀ£º
>
> Ê®·Ö±§Ç¸£¬ÎÒ¶ÔÍøÕ¾¿ª·¢Ò»Çϲ»Í¨£¬Ò»Ö±×öc++µÄ¡£½Ó´¥pythonÒ»¸öÔ£¬Ñ§Ï°ing¡£^_^
>
> ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
> >
> > ÔÚÍøÉÏËÑË÷һϣ¬pythonÓÐÒ»¸öºº×ÖתƴÒôµÄÀý×Ó£¬ÓÐÒ»¸ö¶ÔÓ¦Êý¾Ý¿â¡£
> >
> > ÏÖÔÚ²»ÖªµÀΪʲôÔÚdjango µÄmodelÖÐ ±àÂë²»ÖªµÀÄÄÓÐÎÊÌâÒ»Ö±´¦Àí²»ÁË¡£¡£¡£
> >
> > ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com > дµÀ£º
> > >
> > > Õâ¸öÄ£¿é½Ðɶ£¿^_^
> > >
> > > ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
> > > >
> > > >
> > > >
> > > > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> > > >
> > > > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > > > >
> > > > > ±ÈÈç ³¤´º ת³ÉÁË che
> > > >
> > > > code and module ÔÚÄÄ£¿
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
> > >
> >
> >
> > _______________________________________________
> > 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/20071108/04c8aefa/attachment.htm 

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

2007年11月08日 星期四 17:52

zinicl zinicl在gmail.com
星期四 十一月 8 17:52:22 HKT 2007

Èç¹ûÖÐÓ¢»ìºÏÔõô°ì£¿

ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
>
> ½â¾öÁË¡£¡£¡£   ÎÒÔÎ ºÜÓôÃƵÄÒ»¸öÎÊÌâ   Ò»¸ö×Ö·ûÔÚpythonÇé¿öÏ len(str)=2
> ÔÚdjangoÖÐlen(str=3)£¬ÕâÑù½«ÇиîµÄ²½³¤ÉèÖÃΪ3£¬¾Í¿ÉÒÔÕý³£×ª»»ÁË¡£
>
> ÔÚ07-11-8£¬clfff. peter < clfff.peter在gmail.com> дµÀ£º
> >
> > Ê®·Ö±§Ç¸£¬ÎÒ¶ÔÍøÕ¾¿ª·¢Ò»Çϲ»Í¨£¬Ò»Ö±×öc++µÄ¡£½Ó´¥pythonÒ»¸öÔ£¬Ñ§Ï°ing¡£^_^
> >
> > ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
> > >
> > > ÔÚÍøÉÏËÑË÷һϣ¬pythonÓÐÒ»¸öºº×ÖתƴÒôµÄÀý×Ó£¬ÓÐÒ»¸ö¶ÔÓ¦Êý¾Ý¿â¡£
> > >
> > > ÏÖÔÚ²»ÖªµÀΪʲôÔÚdjango µÄmodelÖÐ ±àÂë²»ÖªµÀÄÄÓÐÎÊÌâÒ»Ö±´¦Àí²»ÁË¡£¡£¡£
> > >
> > > ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com > дµÀ£º
> > > >
> > > > Õâ¸öÄ£¿é½Ðɶ£¿^_^
> > > >
> > > > ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
> > > > >
> > > > >
> > > > >
> > > > > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> > > > >
> > > > > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > > > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > > > > >
> > > > > > ±ÈÈç ³¤´º ת³ÉÁË che
> > > > >
> > > > > code and module ÔÚÄÄ£¿
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > 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
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
>
>
> _______________________________________________
> 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/20071108/55759351/attachment.html 

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

2007年11月08日 星期四 18:06

赵飞 mydjango在gmail.com
星期四 十一月 8 18:06:33 HKT 2007

ÖÐÓ¢ÎÄ»ìºÏÒ²±È½ÏºÃ°ì£¬ÒòΪÕâ¸öÊǵ¼Èëµ½×ÖµäÒÔºóÑ°ÕÒkeyÀ´×ª»»µÄ£¬Èç¹ûÕâ¸ö×Ö·ûÔÚ×ÖµäÖÐûÓÐÕÒµ½key¾Í±£ÁôËü£¬»òÕßÖ±½Ó¸Éµô¡£¡£¡£Èç¹ûÅÂÖظ´¾ÍÔö¼ÓÒ»¸öµ±Ç°Ê±¼ä±È½ÏºÃ¡«¡«

ÔÚ07-11-8£¬zinicl <zinicl在gmail.com> дµÀ£º
>
> Èç¹ûÖÐÓ¢»ìºÏÔõô°ì£¿
>
> ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
> >
> > ½â¾öÁË¡£¡£¡£   ÎÒÔÎ ºÜÓôÃƵÄÒ»¸öÎÊÌâ   Ò»¸ö×Ö·ûÔÚpythonÇé¿öÏ len(str)=2
> > ÔÚdjangoÖÐlen(str=3)£¬ÕâÑù½«ÇиîµÄ²½³¤ÉèÖÃΪ3£¬¾Í¿ÉÒÔÕý³£×ª»»ÁË¡£
> >
> > ÔÚ07-11-8£¬clfff. peter < clfff.peter在gmail.com> дµÀ£º
> > >
> > > Ê®·Ö±§Ç¸£¬ÎÒ¶ÔÍøÕ¾¿ª·¢Ò»Çϲ»Í¨£¬Ò»Ö±×öc++µÄ¡£½Ó´¥pythonÒ»¸öÔ£¬Ñ§Ï°ing¡£^_^
> > >
> > > ÔÚ07-11-8£¬ÕÔ·É <mydjango在gmail.com> дµÀ£º
> > > >
> > > > ÔÚÍøÉÏËÑË÷һϣ¬pythonÓÐÒ»¸öºº×ÖתƴÒôµÄÀý×Ó£¬ÓÐÒ»¸ö¶ÔÓ¦Êý¾Ý¿â¡£
> > > >
> > > > ÏÖÔÚ²»ÖªµÀΪʲôÔÚdjango µÄmodelÖÐ ±àÂë²»ÖªµÀÄÄÓÐÎÊÌâÒ»Ö±´¦Àí²»ÁË¡£¡£¡£
> > > >
> > > > ÔÚ07-11-8£¬clfff. peter <clfff.peter在gmail.com > дµÀ£º
> > > > >
> > > > > Õâ¸öÄ£¿é½Ðɶ£¿^_^
> > > > >
> > > > > ÔÚ07-11-8£¬Ben Luo <benluo在gmail.com> дµÀ£º
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> > > > > >
> > > > > > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > > > > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > > > > > >
> > > > > > > ±ÈÈç ³¤´º ת³ÉÁË che
> > > > > >
> > > > > > code and module ÔÚÄÄ£¿
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > 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
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
> > >
> >
> >
> > _______________________________________________
> > 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/20071108/8f5dce8a/attachment-0001.htm 

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

2007年11月08日 星期四 20:47

Ben Luo benluo在gmail.com
星期四 十一月 8 20:47:40 HKT 2007

On Nov 8, 2007 5:33 PM, ÕÔ·É <mydjango在gmail.com> wrote:

> ½â¾öÁË¡£¡£¡£   ÎÒÔÎ ºÜÓôÃƵÄÒ»¸öÎÊÌâ   Ò»¸ö×Ö·ûÔÚpythonÇé¿öÏ len(str)=2
> ÔÚdjangoÖÐlen(str=3)£¬ÕâÑù½«ÇиîµÄ²½³¤ÉèÖÃΪ3£¬¾Í¿ÉÒÔÕý³£×ª»»ÁË¡£
>
½¨ÒéÔÙ¿´¿´ÓйØutf8±àÂëµÄÎĵµ¡£3×Ö½ÚÖ»ÊÇ´ÕÇÉ°ÕÁË¡£utf8ÊDz»¶¨³¤µÄ¡£ÓÐ1£¬2£¬3×Ö½Ú3ÖÖ¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071108/dfba9d40/attachment.html 

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

2007年11月08日 星期四 21:45

yuan xuan xuanyuan14.leo在gmail.com
星期四 十一月 8 21:45:49 HKT 2007

MS 1-6字节的说...

在07-11-8,Ben Luo <benluo在gmail.com> 写道:
>
>
>
> On Nov 8, 2007 5:33 PM, 赵飞 <mydjango在gmail.com> wrote:
>
> > 解决了。。。   我晕 很郁闷的一个问题   一个字符在python情况下 len(str)=2
> > 在django中len(str=3),这样将切割的步长设置为3,就可以正常转换了。
> >
> 建议再看看有关utf8编码的文档。3字节只是凑巧罢了。utf8是不定长的。有1,2,3字节3种。
>
>
> _______________________________________________
> 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/20071108/39d3bffa/attachment.htm 

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

2007年11月09日 星期五 09:35

Andelf andelf在gmail.com
星期五 十一月 9 09:35:48 HKT 2007

编码为unicode 对象再切片

On 11/8/07, 赵飞 <mydjango at gmail.com> wrote:
> 解决了。。。   我晕 很郁闷的一个问题   一个字符在python情况下 len(str)=2
> 在django中len(str=3),这样将切割的步长设置为3,就可以正常转换了。
>
> 在07-11-8,clfff. peter <clfff.peter at gmail.com> 写道:
> >
> > 十分抱歉,我对网站开发一窍不通,一直做c++的。接触python一个月,学习ing。^_^
> >
> > 在07-11-8,赵飞 <mydjango at gmail.com> 写道:
> > >
> > > 在网上搜索一下,python有一个汉字转拼音的例子,有一个对应数据库。
> > >
> > > 现在不知道为什么在django 的model中 编码不知道哪有问题一直处理不了。。。
> > >
> > > 在07-11-8,clfff. peter <clfff.peter at gmail.com > 写道:
> > > >
> > > > 这个模块叫啥?^_^
> > > >
> > > > 在07-11-8,Ben Luo <benluo at gmail.com> 写道:
> > > > >
> > > > >
> > > > >
> > > > > On Nov 8, 2007 3:13 PM, 赵飞 <mydjango at gmail.com> wrote:
> > > > >
> > > > > > 我现在要实现这样一个过程,输入一个中文名称,提交以后将中文名称转成拼音    现在找到了一个 python
> > > > > > 转拼音的模块,单独使用很正常。但是加入到django中,转出来的 就不对
> > > > > >
> > > > > > 比如 长春 转成了 che
> > > > >
> > > > > code and module 在哪?
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > 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
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > 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
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>

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

2007年11月12日 星期一 01:02

Cyril.Liu terry6394在gmail.com
星期一 十一月 12 01:02:38 HKT 2007

兄弟,你找到的模块共享一下啦..

On Nov 8, 2007 3:13 PM, 赵飞 <mydjango at gmail.com> wrote:

> 我现在要实现这样一个过程,输入一个中文名称,提交以后将中文名称转成拼音    现在找到了一个 python
> 转拼音的模块,单独使用很正常。但是加入到django中,转出来的 就不对
>
> 比如 长春 转成了 che
>
> _______________________________________________
> 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/20071112/5ea917d2/attachment.html 

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

2007年11月12日 星期一 10:15

赵飞 mydjango在gmail.com
星期一 十一月 12 10:15:29 HKT 2007

Õâ¸öÊÇÍøÉÏÕÒµÄתƴÒôµÄ³ÌÐò£¬µ÷ÕûһϾͿÉÒÔÓÃÔÚÍøÕ¾ÀïÃæ¡£¸ø´ó¼Ò¹²ÏíÒ»ÏÂ



ÔÚ07-11-12£¬Cyril. Liu <terry6394在gmail.com> дµÀ£º
>
> ÐÖµÜ,ÄãÕÒµ½µÄÄ£¿é¹²ÏíÒ»ÏÂÀ²..
>
> On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
>
> > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> >
> > ±ÈÈç ³¤´º ת³ÉÁË che
> >
> > _______________________________________________
> > 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/20071112/37a01732/attachment-0001.htm 
-------------- 下一部分 --------------
Ò»¸ö·ÇÎı¾¸½¼þ±»Çå³ý...
·¢ÐÅÈË: %(who)s
Ö÷Ìâ: %(subject)s
ÈÕÆÚ: %(date)s
´óС: 17656
Url: http://python.cn/pipermail/python-chinese/attachments/20071112/37a01732/attachment-0001.obj 

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

2007年11月12日 星期一 19:28

Cyril.Liu terry6394在gmail.com
星期一 十一月 12 19:28:28 HKT 2007

看了一下,原来是直接查表的哦。看来整理着txt挺不容易的。。嘻嘻

On Nov 12, 2007 10:15 AM, 赵飞 <mydjango at gmail.com> wrote:

> 这个是网上找的转拼音的程序,调整一下就可以用在网站里面。给大家共享一下
>
>
>
> 在07-11-12,Cyril. Liu < terry6394 at gmail.com> 写道:
>
> > 兄弟,你找到的模块共享一下啦..
> >
> > On Nov 8, 2007 3:13 PM, 赵飞 <mydjango at gmail.com> wrote:
> >
> > >  我现在要实现这样一个过程,输入一个中文名称,提交以后将中文名称转成拼音    现在找到了一个 python
> > > 转拼音的模块,单独使用很正常。但是加入到django中,转出来的 就不对
> > >
> > > 比如 长春 转成了 che
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20071112/8783288d/attachment.htm 

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

2007年11月13日 星期二 08:42

xuanll xuanll在zctt.com.cn
星期二 十一月 13 08:42:55 HKT 2007

ÏÂÃæ´úÂëÊÇC#µÄ »ñÈ¡×Ö·û´®ÖÐÿ¸öºº×ÖµÚÒ»¸öÆ´Òô
¿´¿´Äܲ»Äܸù¾ÝÕâ¸öÔ­Àíд¸öpythonµÄ

        /// 
        /// »ñÈ¡×Ö·û´®ÖÐÿ¸öºº×ÖµÚÒ»¸öÆ´Òô
        /// 
        /// 
        /// 
        public static string GetSpells(string input)
        {
            int len = input.Length;
            string reVal = "";

            for (int i = 0; i < len; i++)
            {
                reVal += GetSpell(input.Substring(i, 1));
            }

            return reVal;
        }

        private static string GetSpell(string cn)
        {
            byte[] arrCN = Encoding.Default.GetBytes(cn);

            if (arrCN.Length > 1)
            {
                int area = (short)arrCN[0];
                int pos = (short)arrCN[1];
                int code = (area << 8) + pos;
                int[] areacode = { 45217, 45253, 45761, 46318, 46826, 47010, 47297, 47614, 48119, 48119, 49062, 49324, 49896, 50371, 50614, 50622, 50906, 51387, 51446, 52218, 52698, 52698, 52698, 52980, 53689, 54481 };

                for (int i = 0; i < 26; i++)
                {
                    int max = 55290;
                    if (i != 25) max = areacode[i + 1];
                    if (areacode[i] <= code && code < max)
                    {
                        return Encoding.Default.GetString(new byte[] { (byte)(65 + i) });
                    }
                }

                return "?";
            }
            else
            {
                return cn;
            }
        }

  ----- Original Message ----- 
  From: Cyril.Liu 
  To: python-chinese在lists.python.cn 
  Sent: Monday, November 12, 2007 7:28 PM
  Subject: Re: [python-chinese] django תƴÒôÎÊÌâ


  ¿´ÁËÒ»ÏÂ,Ô­À´ÊÇÖ±½Ó²é±íµÄŶ¡£¿´À´ÕûÀí×Åtxtͦ²»ÈÝÒ׵ġ£¡£ÎûÎû


  On Nov 12, 2007 10:15 AM, ÕÔ·É <mydjango在gmail.com> wrote:

    Õâ¸öÊÇÍøÉÏÕÒµÄתƴÒôµÄ³ÌÐò£¬µ÷ÕûһϾͿÉÒÔÓÃÔÚÍøÕ¾ÀïÃæ¡£¸ø´ó¼Ò¹²ÏíÒ»ÏÂ




    ÔÚ07-11-12£¬Cyril. Liu < terry6394在gmail.com> дµÀ£º 
      ÐÖµÜ,ÄãÕÒµ½µÄÄ£¿é¹²ÏíÒ»ÏÂÀ²..


      On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:

        ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô

        ±ÈÈç ³¤´º ת³ÉÁË che 

        _______________________________________________
        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



    _______________________________________________
    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/20071113/e61a1f2a/attachment-0001.htm 

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

2007年11月13日 星期二 08:51

xuanll xuanll在zctt.com.cn
星期二 十一月 13 08:51:27 HKT 2007

¿´¿´Äܲ»Äܸù¾ÝÏÂÃæC#´úÂëÔٸĸĵõ½Æ´Òô

        /// 
        /// »ñÈ¡ºº×ÖµÚÒ»¸öÆ´Òô
        /// 
        private static string GetSpell(string cn)
        {
            byte[] arrCN = Encoding.Default.GetBytes(cn);

            if (arrCN.Length > 1)
            {
                int area = (short)arrCN[0];
                int pos = (short)arrCN[1];
                int code = (area << 8) + pos;
                int[] areacode = { 45217, 45253, 45761, 46318, 46826, 47010, 47297, 47614, 48119, 48119, 49062, 49324, 49896, 50371, 50614, 50622, 50906, 51387, 51446, 52218, 52698, 52698, 52698, 52980, 53689, 54481 };

                for (int i = 0; i < 26; i++)
                {
                    int max = 55290;
                    if (i != 25) max = areacode[i + 1];
                    if (areacode[i] <= code && code < max)
                    {
                        return Encoding.Default.GetString(new byte[] { (byte)(65 + i) });
                    }
                }

                return "?";
            }
            else
            {
                return cn;
            }
        }

  ----- Original Message ----- 
  From: Cyril.Liu 
  To: python-chinese在lists.python.cn 
  Sent: Monday, November 12, 2007 7:28 PM
  Subject: Re: [python-chinese] django תƴÒôÎÊÌâ


  ¿´ÁËÒ»ÏÂ,Ô­À´ÊÇÖ±½Ó²é±íµÄŶ¡£¿´À´ÕûÀí×Åtxtͦ²»ÈÝÒ׵ġ£¡£ÎûÎû


  On Nov 12, 2007 10:15 AM, ÕÔ·É <mydjango在gmail.com> wrote:

    Õâ¸öÊÇÍøÉÏÕÒµÄתƴÒôµÄ³ÌÐò£¬µ÷ÕûһϾͿÉÒÔÓÃÔÚÍøÕ¾ÀïÃæ¡£¸ø´ó¼Ò¹²ÏíÒ»ÏÂ




    ÔÚ07-11-12£¬Cyril. Liu < terry6394在gmail.com> дµÀ£º 
      ÐÖµÜ,ÄãÕÒµ½µÄÄ£¿é¹²ÏíÒ»ÏÂÀ²..


      On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:

        ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô

        ±ÈÈç ³¤´º ת³ÉÁË che 

        _______________________________________________
        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



    _______________________________________________
    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/20071113/8a648a02/attachment.html 

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

2007年11月13日 星期二 08:57

@@ askfor在gmail.com
星期二 十一月 13 08:57:39 HKT 2007

¿´ÉÏÃæÄǶδúÂë ¹Ø¼ü²¿·ÖÊÇ
 return Encoding.Default.GetString(new byte[] { (byte)(65 + i) });

µ«ÊDz»ÖªµÀEncoding.Default.GetStringдµÄʲô


On 11/13/07, xuanll <xuanll在zctt.com.cn> wrote:
>
>  ¿´¿´Äܲ»Äܸù¾ÝÏÂÃæC#´úÂëÔٸĸĵõ½Æ´Òô
>
>         /// 
>         /// »ñÈ¡ºº×ÖµÚÒ»¸öÆ´Òô
>         /// 
>         private static string GetSpell(string cn)
>         {
>             byte[] arrCN = Encoding.Default.GetBytes(cn);
>
>             if (arrCN.Length > 1)
>             {
>                 int area = (short)arrCN[0];
>                 int pos = (short)arrCN[1];
>                 int code = (area << 8) + pos;
>                 int[] areacode = { 45217, 45253, 45761, 46318, 46826,
> 47010, 47297, 47614, 48119, 48119, 49062, 49324, 49896, 50371, 50614, 50622,
> 50906, 51387, 51446, 52218, 52698, 52698, 52698, 52980, 53689, 54481 };
>
>                 for (int i = 0; i < 26; i++)
>                 {
>                     int max = 55290;
>                     if (i != 25) max = areacode[i + 1];
>                     if (areacode[i] <= code && code < max)
>                     {
>                         return Encoding.Default.GetString(new byte[] {
> (byte)(65 + i) });
>                     }
>                 }
>
>                 return "?";
>             }
>             else
>             {
>                 return cn;
>             }
>         }
>
>
> ----- Original Message -----
> *From:* Cyril.Liu <terry6394在gmail.com>
> *To:* python-chinese在lists.python.cn
> *Sent:* Monday, November 12, 2007 7:28 PM
> *Subject:* Re: [python-chinese] django תƴÒôÎÊÌâ
>
>
> ¿´ÁËÒ»ÏÂ,Ô­À´ÊÇÖ±½Ó²é±íµÄŶ¡£¿´À´ÕûÀí×Åtxtͦ²»ÈÝÒ׵ġ£¡£ÎûÎû
>
> On Nov 12, 2007 10:15 AM, ÕÔ·É <mydjango在gmail.com> wrote:
>
> > Õâ¸öÊÇÍøÉÏÕÒµÄתƴÒôµÄ³ÌÐò£¬µ÷ÕûһϾͿÉÒÔÓÃÔÚÍøÕ¾ÀïÃæ¡£¸ø´ó¼Ò¹²ÏíÒ»ÏÂ
> >
> >
> >
> > ÔÚ07-11-12£¬Cyril. Liu < terry6394在gmail.com> дµÀ£º
> >
> > > ÐÖµÜ,ÄãÕÒµ½µÄÄ£¿é¹²ÏíÒ»ÏÂÀ²..
> > >
> > > On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com> wrote:
> > >
> > > > ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python
> > > > תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô
> > > >
> > > > ±ÈÈç ³¤´º ת³ÉÁË che
> > > >
> > > > _______________________________________________
> > > > 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
> > >
> >
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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/20071113/7a63aabc/attachment-0001.htm 

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

2007年11月13日 星期二 09:12

xuanll xuanll在zctt.com.cn
星期二 十一月 13 09:12:22 HKT 2007

µÃµ½µÄÊÇÓ¢ÎÄ×Öĸ°¡ A~Z
Ö÷ÒªµÄÊÇareacode µÄ»®·Ö
ÏÖÔÚÊÇ»®·Ö³ÉÁË26¸öÇøÓò ¶ÔÓ¦26¸öÊ××Öĸ
ÏÖÔÚÏëÔÙ°Ñÿ¸öÇøÓò»®·Ö³öÀ´ µÃµ½¾ßÌåµÄÆ´Òô

¸Ð¾õºÍÄÇλÀÏÐֵIJé×ÖµäºÃÏñÒ²²î²»¶à
  ----- Original Message ----- 
  From: @@ 
  To: python-chinese在lists.python.cn 
  Sent: Tuesday, November 13, 2007 8:57 AM
  Subject: Re: [python-chinese] django תƴÒôÎÊÌâ


  ¿´ÉÏÃæÄǶδúÂë ¹Ø¼ü²¿·ÖÊÇ
   return Encoding.Default.GetString(new byte[] { (byte)(65 + i) });
   
  µ«ÊDz»ÖªµÀEncoding.Default.GetStringдµÄʲô

   
  On 11/13/07, xuanll <xuanll在zctt.com.cn> wrote: 
    ¿´¿´Äܲ»Äܸù¾ÝÏÂÃæC#´úÂëÔٸĸĵõ½Æ´Òô

            /// 
            /// »ñÈ¡ºº×ÖµÚÒ»¸öÆ´Òô
            /// 
            private static string GetSpell(string cn)
            {
                byte[] arrCN = Encoding.Default.GetBytes (cn);

                if (arrCN.Length > 1)
                {
                    int area = (short)arrCN[0];
                    int pos = (short)arrCN[1];
                    int code = (area << 8) + pos;
                    int[] areacode = { 45217, 45253, 45761, 46318, 46826, 47010, 47297, 47614, 48119, 48119, 49062, 49324, 49896, 50371, 50614, 50622, 50906, 51387, 51446, 52218, 52698, 52698, 52698, 52980, 53689, 54481 }; 

                    for (int i = 0; i < 26; i++)
                    {
                        int max = 55290;
                        if (i != 25) max = areacode[i + 1];
                        if (areacode[i] <= code && code < max) 
                        {
                            return Encoding.Default.GetString(new byte[] { (byte)(65 + i) });
                        }
                    }

                    return "?";
                }
                else
                {
                    return cn;
                }
            }
     
      ----- Original Message ----- 
      From: Cyril.Liu 
      To: python-chinese在lists.python.cn 
      Sent: Monday, November 12, 2007 7:28 PM
      Subject: Re: [python-chinese] django תƴÒôÎÊÌâ

       
      ¿´ÁËÒ»ÏÂ,Ô­À´ÊÇÖ±½Ó²é±íµÄŶ¡£¿´À´ÕûÀí×Åtxtͦ²»ÈÝÒ׵ġ£¡£ÎûÎû


      On Nov 12, 2007 10:15 AM, ÕÔ·É <mydjango在gmail.com > wrote:

        Õâ¸öÊÇÍøÉÏÕÒµÄתƴÒôµÄ³ÌÐò£¬µ÷ÕûһϾͿÉÒÔÓÃÔÚÍøÕ¾ÀïÃæ¡£¸ø´ó¼Ò¹²ÏíÒ»ÏÂ




        ÔÚ07-11-12£¬Cyril. Liu < terry6394在gmail.com> дµÀ£º 
          ÐÖµÜ,ÄãÕÒµ½µÄÄ£¿é¹²ÏíÒ»ÏÂÀ²..


          On Nov 8, 2007 3:13 PM, ÕÔ·É <mydjango在gmail.com > wrote:

            ÎÒÏÖÔÚҪʵÏÖÕâÑùÒ»¸ö¹ý³Ì£¬ÊäÈëÒ»¸öÖÐÎÄÃû³Æ£¬Ìá½»ÒÔºó½«ÖÐÎÄÃû³Æת³ÉÆ´Òô    ÏÖÔÚÕÒµ½ÁËÒ»¸ö python תƴÒôµÄÄ£¿é£¬µ¥¶ÀʹÓúÜÕý³£¡£µ«ÊǼÓÈëµ½djangoÖУ¬×ª³öÀ´µÄ ¾Í²»¶Ô 

            ±ÈÈç ³¤´º ת³ÉÁË che 

            _______________________________________________
            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



        _______________________________________________
        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 



    _______________________________________________
    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/20071113/686458ba/attachment-0001.htm 

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

2007年11月22日 星期四 19:09

snoop hgli0904在gmail.com
星期四 十一月 22 19:09:45 HKT 2007

 觉得wingware不错,下了个。用起来还不错。
另外, 悄悄的问一下,哪位有wingware的注册机啊,没google到
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071122/a331b956/attachment.html 

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

2007年11月23日 星期五 06:49

Ben Luo benluo在gmail.com
星期五 十一月 23 06:49:31 HKT 2007

On Nov 22, 2007 7:09 PM, snoop <hgli0904在gmail.com> wrote:

>   ¾õµÃwingware²»´í£¬ÏÂÁ˸ö¡£ÓÃÆðÀ´»¹²»´í¡£
> ÁíÍ⣬ ÇÄÇĵÄÎÊһϣ¬ÄÄλÓÐwingwareµÄ×¢²á»ú°¡£¬Ã»googleµ½
>
active python µÄIDEÒѾ­¿ªÔ´ÁË¡£Äã¿ÉÒÔÊÔÊÔÄǸö°É¡£Ò²ÊÇÉÌÒµ¼¶µÄ¡£²»ÖªµÀÄãϲ»¶²»Ï²»¶¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071123/a1bc5279/attachment.html 

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

2007年11月23日 星期五 18:58

snoop hgli0904在gmail.com
星期五 十一月 23 18:58:39 HKT 2007

谢了。下了个komodo试了试。感觉还是wing比较酷。
 
但是wingware里面怎么显示不了中文??
 
注册机还是没找到:(
哪位有的帮忙给个

  _____  

发件人: python-chinese-bounces at lists.python.cn
[mailto:python-chinese-bounces at lists.python.cn] 代表 Ben Luo
发送时间: 2007年11月23日 6:50
收件人: python-chinese at lists.python.cn
主题: Re: [python-chinese] wingware




On Nov 22, 2007 7:09 PM, snoop <hgli0904 at gmail.com> wrote:


 觉得wingware不错,下了个。用起来还不错。
另外, 悄悄的问一下,哪位有wingware的注册机啊,没google到

active python 的IDE已经开源了。你可以试试那个吧。也是商业级的。不知道你喜欢
不喜欢。 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20071123/9f981602/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号