2005年07月14日 星期四 11:37
我在zope.org查找,没有找到呃。我目前在用的有zMysqlDA,曾用过zInformixDA。 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050714/3f451e73/attachment.htm
2005年07月14日 星期四 12:42
PythonCN,您好! 按照cherrypy里面的10个例子依次看下来,基本上已经会用了。 不知道cherrypy能够支持多大规模的应用? 致 礼! albertlee hanzhupeng at 163.com 2005-07-14
2005年07月14日 星期四 14:02
vajS6cq508N1bmljb2RlwLS0psDtoaMKCtTaIDA1LTctMTSjrGN1aXlsPGd1eGluZ2hhbjE5ODFA aG90bWFpbC5jb20+INC0tcCjugo+IMew0rvV89C0wcvSu7j2xdC2z8jV0+/Iq73Hxqy82cP7tcS6 r8r9o6zI58/Co7oKPiBkZWYgY2hlY2tGdWxsSGlyYWdhbmEoY29udGVudCk6Cj4gIGltcG9ydCBy ZQo+ICBjb250ZW50PXN0cihjb250ZW50KQo+ICBpPTAKPiAgd2hpbGUgaTxsZW4oY29udGVudCk6 Cj4gICBpZiBvcmQoY29udGVudFtpXSkgJiAweDgwOgo+ICAgIGk9aSsyCj4gICBlbHNlOgo+ICAg IHJldHVybiBGYWxzZQo+ICBpZgo+IHJlLnNlYXJjaChyJ15bJytyZS5lc2NhcGUoJ6WipaSlpqWo paqlq6Wtpa+lsaWzpbWlt6W5pbulvaW/pcGlxKXGpcilyqXLpcylzaXOpc+l0qXVpdil26Xepd+l 4KXhpeKl5KWkpealqKXopeml6qXrpeyl7aXvpaSlpqWopfKl86XDpaylrqWwpbKltKW2pbiluqW8 pb6lwKXCpcWlx6XJpdCl06XWpdml3KXRpdSl16Xapd2l46XlpeeloaWjpaelpaWpqWAnKSsnXSsk Jyxjb250ZW50KToKPiAgIHJldHVybiBUcnVlCj4gIHJldHVybiBGYWxzZQo+ICAKPiDU2tXiwO+3 os/W0ru49s7KzOKjrLWxztKw0bq619YivccitKu9+MiltcTKsbryo6y+uci7t7W72MHLVHJ1ZaOo xL/HsNa7t6LP1tXi0ru49rq619ajqaOsvq2198rUo6zI57n7yKW19MHL19a3+yKl6iKjrL7Nu+HS u8fQ1f2zo6OsusPP8crHIqXqIrrNurrX1iK9xyK1xEFTQ0lJwuu1xLjfsMvOu8/gzayjrLLFu+HK uSK9xyLNqLn90enWpKOsx+vOyrj3zru088/Ao6zT0Mqyw7S6w7XEveK+9re9t6ijv9C70LujoaOh Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBweXRo b24tY2hpbmVzZSBsaXN0Cj4gcHl0aG9uLWNoaW5lc2VAbGlzdHMucHl0aG9uLmNuCj4gaHR0cDov L3B5dGhvbi5jbi9tYWlsbWFuL2xpc3RpbmZvL3B5dGhvbi1jaGluZXNlCj4gCj4gCj4gCgoKLS0g CkkgbGlrZSBweXRob24hIApNeSBEb25ld3MgQmxvZzogaHR0cDovL3d3dy5kb25ld3MubmV0L2xp bW9kb3UKTmV3IEdvb2dsZSBNYWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5jb20v Z3JvdXAvcHl0aG9uLWNuCg==
2005年07月14日 星期四 14:09
Ç°Ò»ÕóдÁËÒ»¸öÅжÏÈÕÓïÈ«½ÇƬ¼ÙÃûµÄº¯Êý£¬ÈçÏ£º def checkFullHiragana(content): import re content=str(content) i=0 while ihttp://lists.exoweb.net/pipermail/python-chinese/attachments/20050714/2f611804/attachment.html
2005年07月14日 星期四 14:10
1qez1mxpbW9kb3W1xNLivPujrLrHusejrNXiuPbTyrz+wdCx7cyryMjE1sHLo6zIzLK716Gyu7ei 0dSjrLK7uf3T0Lngy67P09LJo6zH69buzruw/Lqto6zPwrK7zqrA/aGjCgpPbiA3LzE0LzA1LCBs aW1vZG91IDxsaW1vZG91QGdtYWlsLmNvbT4gd3JvdGU6Cj4gvajS6cq508N1bmljb2RlwLS0psDt oaMKPiAKPiDU2iAwNS03LTE0o6xjdWl5bDxndXhpbmdoYW4xOTgxQGhvdG1haWwuY29tPiDQtLXA o7oKPiA+IMew0rvV89C0wcvSu7j2xdC2z8jV0+/Iq73Hxqy82cP7tcS6r8r9o6zI58/Co7oKPiA+ IGRlZiBjaGVja0Z1bGxIaXJhZ2FuYShjb250ZW50KToKPiA+ICBpbXBvcnQgcmUKPiA+ICBjb250 ZW50PXN0cihjb250ZW50KQo+ID4gIGk9MAo+ID4gIHdoaWxlIGk8bGVuKGNvbnRlbnQpOgo+ID4g ICBpZiBvcmQoY29udGVudFtpXSkgJiAweDgwOgo+ID4gICAgaT1pKzIKPiA+ICAgZWxzZToKPiA+ ICAgIHJldHVybiBGYWxzZQo+ID4gIGlmCj4gPiByZS5zZWFyY2gocideWycrcmUuZXNjYXBlKCel oqWkpaalqKWqpaulraWvpbGls6W1pbeluaW7pb2lv6XBpcSlxqXIpcqly6XMpc2lzqXPpdKl1aXY pdul3qXfpeCl4aXipeSlpKXmpail6KXppeql66Xspe2l76WkpaalqKXypfOlw6Wspa6lsKWypbSl tqW4pbqlvKW+pcClwqXFpcelyaXQpdOl1qXZpdyl0aXUpdel2qXdpeOl5aXnpaGlo6WnpaWlqalg JykrJ10rJCcsY29udGVudCk6Cj4gPiAgIHJldHVybiBUcnVlCj4gPiAgcmV0dXJuIEZhbHNlCj4g Pgo+ID4g1NrV4sDvt6LP1tK7uPbOyszio6y1sc7SsNG6utfWIr3HIrSrvfjIpbXEyrG68qOsvrnI u7e1u9jBy1RydWWjqMS/x7DWu7eiz9bV4tK7uPa6utfWo6mjrL6ttffK1KOsyOe5+8iltfTBy9fW t/sipeoio6y+zbvh0rvH0NX9s6OjrLrDz/HKxyKl6iK6zbq619YivccitcRBU0NJScLrtcS437DL zrvP4M2so6yyxbvhyrkivccizai5/dHp1qSjrMfrzsq49867tPPPwKOs09DKssO0usO1xL3ivva3 vbeoo7/Qu9C7o6GjoQo+ID4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX18KPiA+IHB5dGhvbi1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l0aG9uLWNoaW5lc2VAbGlzdHMucHl0aG9uLmNuCj4gPiA+IGh0dHA6Ly9weXRob24uY24vbWFp bG1hbi9saXN0aW5mby9weXRob24tY2hpbmVzZQo+ID4gPgo+ID4gPgo+ID4gPgo+ID4KPiA+Cj4g PiAtLQo+ID4gSSBsaWtlIHB5dGhvbiEKPiA+IE15IERvbmV3cyBCbG9nOiBodHRwOi8vd3d3LmRv bmV3cy5uZXQvbGltb2RvdQo+ID4gTmV3IEdvb2dsZSBNYWlsbGlzdDogaHR0cDovL2dyb3Vwcy1i ZXRhLmdvb2dsZS5jb20vZ3JvdXAvcHl0aG9uLWNuCj4gPgo+ID4gX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiA+IHB5dGhvbi1jaGluZXNlIGxpc3QKPiA+ IHB5dGhvbi1jaGluZXNlQGxpc3RzLnB5dGhvbi5jbgo+ID4gaHR0cDovL3B5dGhvbi5jbi9tYWls bWFuL2xpc3RpbmZvL3B5dGhvbi1jaGluZXNlCj4gPgo+ID4KPiA+Cj4gCgoKLS0gCkkgbGlrZSBw eXRob24hIApNeSBEb25ld3MgQmxvZzogaHR0cDovL3d3dy5kb25ld3MubmV0L2xpbW9kb3UKTmV3 IEdvb2dsZSBNYWlsbGlzdDogaHR0cDovL2dyb3Vwcy1iZXRhLmdvb2dsZS5jb20vZ3JvdXAvcHl0 aG9uLWNuCg==
2005年07月14日 星期四 14:20
cuiyl 写道: > 前一阵写了一个判断日语全角片假名的函数,如下: > def checkFullHiragana(content): > import re > content=str(content) > i=0 > while i> if ord(content[i]) & 0x80: > i=i+2 > else: > return False > if re.search(r'^['+re.escape('アイウエオカキクケコサシスセソタチツテト > ナニヌネノハヒフヘホマミムメモヤイユエヨラリルレロワイウエヲンッガギグゲ > ゴザジズゼゾダヂヅデドバビブベボパピプペポャュョァィェゥォー')+']+$', > content): > return True > return False > > 在这里发现一个问题,当我把汉字“角”传进去的时候,竟然返回了True(目前只发 > 现这一个汉字),经调试,如果去掉了字符“リ”,就会一切正常,好像是“リ”和汉 > 字“角”的ASCII码的高八位相同,才会使“角”通过验证,请问各位大侠,有什么好 > 的解决方法?谢谢!! > 把pattern和content直接转成unicode进行匹配即可,不用这么麻烦。
2005年07月14日 星期四 15:03
ÎÒÔÚ²éÕÒunicodeʱ£¬×ÊÁÏÖÐдµÀ£º ÄÚÖú¯Êýunicode() ÌṩÁË·ÃÎÊ£¨±àÂëºÍ½âÂ룩ËùÓÐÒÑ×¢²áµÄUnicode±àÂë µÄ·½·¨¡£ËüÄÜת»»ÖÚËùÖÜÖªµÄ Latin-1, ASCII, UTF-8, ºÍ UTF-16¡£ºóÃæ µÄÁ½¸ö¿É±ä³¤±àÂë×Ö·û¼¯ÓÃÒ»¸ö»ò¶à¸öbyte´æ´¢Unicode×Ö·û¡£Ä¬ÈϵÄ×Ö·û ¼¯ÊÇ ASCII £¬ËüÖ»´¦Àí0µ½127µÄ±àÂ룬¾Ü¾øÆäËüµÄ×Ö·û²¢·µ»ØÒ»¸ö´íÎó¡£ µ±Ò»¸öUnicode×Ö·û´®±»´òÓ¡¡¢Ð´ÈëÎļþ»òͨ¹ýstr()ת»¯Ê±£¬ËüÃDZ»Ìæ»» ΪĬÈϵıàÂë¡£ µ«ÊÇÎÒÊäÈëµÄ×Ö·û±¾ÉíÊÇshift-jis±àÂëµÄ£¬unicodeÖÐÖ§³ÖÕâÖÖ±àÂ뼯Â𣿠£¨µ÷ÊÔʱºò»á±¨´í£¬Ã»ÓÐÕÒµ½¡®shift-jis¡¯±àÂ뼯£© ----- Original Message ----- From: "limodou" <limodou at gmail.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 14, 2005 2:02 PM Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > ½¨ÒéʹÓÃunicodeÀ´´¦Àí¡£ > > ÔÚ 05-7-14£¬cuiyl<guxinghan1981 at hotmail.com> дµÀ£º > > Ç°Ò»ÕóдÁËÒ»¸öÅжÏÈÕÓïÈ«½ÇƬ¼ÙÃûµÄº¯Êý£¬ÈçÏ£º > > def checkFullHiragana(content): > > import re > > content=str(content) > > i=0 > > while i> > if ord(content[i]) & 0x80: > > i=i+2 > > else: > > return False > > if > > re.search(r'^['+re.escape('¥¢¥¤¥¦¥¨¥ª¥«¥¥¯¥±¥³¥µ¥·¥¹¥»¥½¥¿¥Á¥Ä¥Æ¥È¥Ê¥Ë ¥Ì¥Í¥Î¥Ï¥Ò¥Õ¥Ø¥Û¥Þ¥ß¥à¥á¥â¥ä¥¤¥æ¥¨¥è¥é¥ê¥ë¥ì¥í¥ï¥¤¥¦¥¨¥ò¥ó¥Ã¥¬¥®¥°¥²¥´¥¶¥¸¥º ¥¼¥¾¥À¥Â¥Å¥Ç¥É¥Ð¥Ó¥Ö¥Ù¥Ü¥Ñ¥Ô¥×¥Ú¥Ý¥ã¥å¥ç¥¡¥£¥§¥¥¥©©`')+']+$',content): > > return True > > return False > > > > ÔÚÕâÀï·¢ÏÖÒ»¸öÎÊÌ⣬µ±ÎҰѺº×Ö"½Ç"´«½øÈ¥µÄʱºò£¬¾¹È»·µ»ØÁËTrue£¨Ä¿Ç°Ö»·¢ ÏÖÕâÒ»¸öºº×Ö£©£¬¾µ÷ÊÔ£¬Èç¹ûÈ¥µôÁË×Ö·û"¥ê"£¬¾Í»áÒ»ÇÐÕý³££¬ºÃÏñÊÇ"¥ê"ºÍºº×Ö" ½Ç"µÄASCIIÂëµÄ¸ß°ËλÏàͬ£¬²Å»áʹ"½Ç"ͨ¹ýÑéÖ¤£¬ÇëÎʸ÷λ´óÏÀ£¬ÓÐʲôºÃµÄ½â¾ö·½ ·¨£¿Ð»Ð»£¡£¡ > > _______________________________________________ > > 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 >
2005年07月14日 星期四 15:06
c:\python24\lib\encodings\aliases.pyÀïÃæ´Ó206ÐпªÊ¼ÍùÏ¿´ jpµÄ±àÂëÓкö࣬Äã×Ô¼ºÊÔÑé°É ----------------------- Original Message ----------------------- From: "cuiyl" <guxinghan1981 at hotmail.com> To: "limodou" <limodou at gmail.com>, <python-chinese at lists.python.cn> Date: Thu, 14 Jul 2005 15:03:18 +0800 Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ ---------------------------------------------------------------- > ÎÒÔÚ²éÕÒunicodeʱ£¬×ÊÁÏÖÐдµÀ£º > ÄÚÖú¯Êýunicode() ÌṩÁË·ÃÎÊ£¨±àÂëºÍ½âÂ룩ËùÓÐÒÑ×¢²áµÄUnicode±àÂë > µÄ·½·¨¡£ËüÄÜת»»ÖÚËùÖÜÖªµÄ Latin-1, ASCII, UTF-8, ºÍ UTF-16¡£ºóÃæ > µÄÁ½¸ö¿É±ä³¤±àÂë×Ö·û¼¯ÓÃÒ»¸ö»ò¶à¸öbyte´æ´¢Unicode×Ö·û¡£Ä¬ÈϵÄ×Ö·û > ¼¯ÊÇ ASCII £¬ËüÖ»´¦Àí0µ½127µÄ±àÂ룬¾Ü¾øÆäËüµÄ×Ö·û²¢·µ»ØÒ»¸ö´íÎó¡£ > µ±Ò»¸öUnicode×Ö·û´®±»´òÓ¡¡¢Ð´ÈëÎļþ»òͨ¹ýstr()ת»¯Ê±£¬ËüÃDZ»Ìæ»» > ΪĬÈϵıàÂë¡£ > µ«ÊÇÎÒÊäÈëµÄ×Ö·û±¾ÉíÊÇshift-jis±àÂëµÄ£¬unicodeÖÐÖ§³ÖÕâÖÖ±àÂ뼯Â𣿠> £¨µ÷ÊÔʱºò»á±¨´í£¬Ã»ÓÐÕÒµ½¡®shift-jis¡¯±àÂ뼯£© > > ----- Original Message ----- > From: "limodou" <limodou at gmail.com> > To: <python-chinese at lists.python.cn> > Sent: Thursday, July 14, 2005 2:02 PM > Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > > > > ½¨ÒéʹÓÃunicodeÀ´´¦Àí¡£ > > > > ÔÚ 05-7-14£¬cuiyl<guxinghan1981 at hotmail.com> дµÀ£º > > > Ç°Ò»ÕóдÁËÒ»¸öÅжÏÈÕÓïÈ«½ÇƬ¼ÙÃûµÄº¯Êý£¬ÈçÏ£º > > > def checkFullHiragana(content): > > > import re > > > content=str(content) > > > i=0 > > > while i> > > if ord(content[i]) & 0x80: > > > i=i+2 > > > else: > > > return False > > > if > > > re.search(r'^['+re.escape('¥¢¥¤¥¦¥¨¥ª¥«¥¥¯¥±¥³¥µ¥·¥¹¥»¥½¥¿¥Á¥Ä¥Æ¥È¥Ê¥Ë > ¥Ì¥Í¥Î¥Ï¥Ò¥Õ¥Ø¥Û¥Þ¥ß¥à¥á¥â¥ä¥¤¥æ¥¨¥è¥é¥ê¥ë¥ì¥í¥ï¥¤¥¦¥¨¥ò¥ó¥Ã¥¬¥®¥°¥²¥´¥¶¥¸¥º > ¥¼¥¾¥À¥Â¥Å¥Ç¥É¥Ð¥Ó¥Ö¥Ù¥Ü¥Ñ¥Ô¥×¥Ú¥Ý¥ã¥å¥ç¥¡¥£¥§¥¥¥©©`')+']+$',content): > > > return True > > > return False > > > > > > ÔÚÕâÀï·¢ÏÖÒ»¸öÎÊÌ⣬µ±ÎҰѺº×Ö"½Ç"´«½øÈ¥µÄʱºò£¬¾¹È»·µ»ØÁËTrue£¨Ä¿Ç°Ö»·¢ > ÏÖÕâÒ»¸öºº×Ö£©£¬¾µ÷ÊÔ£¬Èç¹ûÈ¥µôÁË×Ö·û"¥ê"£¬¾Í»áÒ»ÇÐÕý³££¬ºÃÏñÊÇ"¥ê"ºÍºº×Ö" > ½Ç"µÄASCIIÂëµÄ¸ß°ËλÏàͬ£¬²Å»áʹ"½Ç"ͨ¹ýÑéÖ¤£¬ÇëÎʸ÷λ´óÏÀ£¬ÓÐʲôºÃµÄ½â¾ö·½ > ·¨£¿Ð»Ð»£¡£¡ > > > _______________________________________________ > > > 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 > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese --------------------- Original Message Ends --------------------
2005年07月14日 星期四 15:27
°¥£¡ÎÒµÄÊÇ2.3.4°æ±¾£¬ÆäÖеÄjp±àÂëÖ»ÓÐjis-7 ¾¹ýÊÔÑ飬ÒѾ֤ʵÁË£º²»ºÃÓã¡£¡£¡ »¹ÓÐʲô°ì·¨Äܽâ¾ö£¿ лл£¡ ----- Original Message ----- From: "ÕÅ¿¥" <zhangj at foreseen-info.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 14, 2005 3:06 PM Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > c:\python24\lib\encodings\aliases.pyÀïÃæ´Ó206ÐпªÊ¼ÍùÏ¿´ > > jpµÄ±àÂëÓкö࣬Äã×Ô¼ºÊÔÑé°É > ----------------------- Original Message ----------------------- > From: "cuiyl" <guxinghan1981 at hotmail.com> > To: "limodou" <limodou at gmail.com>, <python-chinese at lists.python.cn> > Date: Thu, 14 Jul 2005 15:03:18 +0800 > Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > ---------------------------------------------------------------- > > ÎÒÔÚ²éÕÒunicodeʱ£¬×ÊÁÏÖÐдµÀ£º > > ÄÚÖú¯Êýunicode() ÌṩÁË·ÃÎÊ£¨±àÂëºÍ½âÂ룩ËùÓÐÒÑ×¢²áµÄUnicode±àÂë > > µÄ·½·¨¡£ËüÄÜת»»ÖÚËùÖÜÖªµÄ Latin-1, ASCII, UTF-8, ºÍ UTF-16¡£ºóÃæ > > µÄÁ½¸ö¿É±ä³¤±àÂë×Ö·û¼¯ÓÃÒ»¸ö»ò¶à¸öbyte´æ´¢Unicode×Ö·û¡£Ä¬ÈϵÄ×Ö·û > > ¼¯ÊÇ ASCII £¬ËüÖ»´¦Àí0µ½127µÄ±àÂ룬¾Ü¾øÆäËüµÄ×Ö·û²¢·µ»ØÒ»¸ö´íÎó¡£ > > µ±Ò»¸öUnicode×Ö·û´®±»´òÓ¡¡¢Ð´ÈëÎļþ»òͨ¹ýstr()ת»¯Ê±£¬ËüÃDZ»Ìæ»» > > ΪĬÈϵıàÂë¡£ > > µ«ÊÇÎÒÊäÈëµÄ×Ö·û±¾ÉíÊÇshift-jis±àÂëµÄ£¬unicodeÖÐÖ§³ÖÕâÖÖ±àÂ뼯Â𣿠> > £¨µ÷ÊÔʱºò»á±¨´í£¬Ã»ÓÐÕÒµ½¡®shift-jis¡¯±àÂ뼯£© > > > > ----- Original Message ----- > > From: "limodou" <limodou at gmail.com> > > To: <python-chinese at lists.python.cn> > > Sent: Thursday, July 14, 2005 2:02 PM > > Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > > > > > > > ½¨ÒéʹÓÃunicodeÀ´´¦Àí¡£ > > > > > > ÔÚ 05-7-14£¬cuiyl<guxinghan1981 at hotmail.com> дµÀ£º > > > > Ç°Ò»ÕóдÁËÒ»¸öÅжÏÈÕÓïÈ«½ÇƬ¼ÙÃûµÄº¯Êý£¬ÈçÏ£º > > > > def checkFullHiragana(content): > > > > import re > > > > content=str(content) > > > > i=0 > > > > while i> > > > if ord(content[i]) & 0x80: > > > > i=i+2 > > > > else: > > > > return False > > > > if > > > > re.search(r'^['+re.escape('¥¢¥¤¥¦¥¨¥ª¥«¥¥¯¥±¥³¥µ¥·¥¹¥»¥½¥¿¥Á¥Ä¥Æ¥È ¥Ê¥Ë > > ¥Ì¥Í¥Î¥Ï¥Ò¥Õ¥Ø¥Û¥Þ¥ß¥à¥á¥â¥ä¥¤¥æ¥¨¥è¥é¥ê¥ë¥ì¥í¥ï¥¤¥¦¥¨¥ò¥ó¥Ã¥¬¥®¥°¥²¥´¥¶ ¥¸¥º > > ¥¼¥¾¥À¥Â¥Å¥Ç¥É¥Ð¥Ó¥Ö¥Ù¥Ü¥Ñ¥Ô¥×¥Ú¥Ý¥ã¥å¥ç¥¡¥£¥§¥¥¥©©`')+']+$',content): > > > > return True > > > > return False > > > > > > > > ÔÚÕâÀï·¢ÏÖÒ»¸öÎÊÌ⣬µ±ÎҰѺº×Ö"½Ç"´«½øÈ¥µÄʱºò£¬¾¹È»·µ»ØÁËTrue£¨Ä¿Ç° Ö»·¢ > > ÏÖÕâÒ»¸öºº×Ö£©£¬¾µ÷ÊÔ£¬Èç¹ûÈ¥µôÁË×Ö·û"¥ê"£¬¾Í»áÒ»ÇÐÕý³££¬ºÃÏñÊÇ"¥ê"ºÍºº ×Ö" > > ½Ç"µÄASCIIÂëµÄ¸ß°ËλÏàͬ£¬²Å»áʹ"½Ç"ͨ¹ýÑéÖ¤£¬ÇëÎʸ÷λ´óÏÀ£¬ÓÐʲôºÃµÄ½â ¾ö·½ > > ·¨£¿Ð»Ð»£¡£¡ > > > > _______________________________________________ > > > > 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 > > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > --------------------- Original Message Ends -------------------- > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
2005年07月14日 星期四 15:32
08MgcHl0aG9uLWNqa2NvZGVjcyC78t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19fX19fX19fX19fCj4gPiA+ID4g cHl0aG9uLWNoaW5lc2UgbGlzdAo+ID4gPiA+IHB5dGhvbi1jaGluZXNlQGxpc3RzLnB5dGhvbi5j bgo+ID4gPiA+IGh0dHA6Ly9weXRob24uY24vbWFpbG1hbi9saXN0aW5mby9weXRob24tY2hpbmVz ZQo+ID4gPiA+Cj4gPiA+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fCj4gPiA+IHB5dGhvbi1jaGluZXNlIGxpc3QKPiA+ID4gcHl0aG9uLWNoaW5lc2VAbGlz dHMucHl0aG9uLmNuCj4gPiA+IGh0dHA6Ly9weXRob24uY24vbWFpbG1hbi9saXN0aW5mby9weXRo b24tY2hpbmVzZQo+ID4KPiA+IC0tLS0tLS0tLS0tLS0tLS0tLS0tLSBPcmlnaW5hbCBNZXNzYWdl IEVuZHMgLS0tLS0tLS0tLS0tLS0tLS0tLS0KPiA+IF9fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fCj4gPiBweXRob24tY2hpbmVzZSBsaXN0Cj4gPiBweXRob24t Y2hpbmVzZUBsaXN0cy5weXRob24uY24KPiA+IGh0dHA6Ly9weXRob24uY24vbWFpbG1hbi9saXN0 aW5mby9weXRob24tY2hpbmVzZQo+ID4KPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fXwo+IHB5dGhvbi1jaGluZXNlIGxpc3QKPiBweXRob24tY2hpbmVzZUBs aXN0cy5weXRob24uY24KPiBodHRwOi8vcHl0aG9uLmNuL21haWxtYW4vbGlzdGluZm8vcHl0aG9u LWNoaW5lc2UKPiAKCgotLSAKc2ltcGxlIGlzIGdvb2QK
2005年07月14日 星期四 15:37
没有很好的方法, 大部分都是商业产品 http://www.czug.org/docs/zope/faq/windows-rmdb-connections http://www.google.com/search?q=zope+sql+server+database+adapter On 7/14/05, guang guang <guangge77 at gmail.com> wrote: > 我在zope.org查找,没有找到呃。我目前在用的有zMysqlDA,曾用过zInformixDA。 > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- simple is good
2005年07月14日 星期四 15:38
19a3+7yvtcTD+7PGysdzaGlmdF9qaXOjrMTjv8nS1NTaZW5jb2RpbmdzL2FsaWFzZXMucHnW0NXS tb3L/LXExuTL/LHww/uhowoK0tTHsISiwNrOyrn90ru49sDgy8a1xM7KzOKjrM/Cw+bKx87SvsDV /cHLy/u1xLT6wuvWrrrztcS0+sLro6zE47/J0tSyzr+80rvPwqOsw7vT0NPDtb1yZcSjv+mhowoK ZGVmIGlzRnVsbEpwSGlyYWdhbmEoaW5wdXRTdHIpOgogICAgICAgJycnQ2hlY2sgdGhlIGlucHV0 IHVuaWNvZGUgc3RyaW5nIGlzIGZ1bGwgamFwYW5lc2UgaGlyYWdhbmEgb3Igbm90LicnJwoKICAg ICAgIGlmIG5vdCBpbnB1dFN0cjoKICAgICAgICAgICByZXR1cm4gRmFsc2UKCiAgICAgICBmb3Ig YyBpbiBpbnB1dFN0cjoKICAgICAgICAgICBpZiBjIDwgdSdcdTMwNDAnIG9yIGMgPiB1J1x1MzA5 Ric6CiAgICAgICAgICAgICAgIHJldHVybiBGYWxzZQoKICAgICAgIHJldHVybiBUcnVlCgppZiAi X19tYWluX18iID09IF9fbmFtZV9fOgogICBwcmludCBpc0Z1bGxKcEhpcmFnYW5hKHUipL+kyqSr pLWk86TPpO+kv6S3pM6kyKTipMCkwaTHpLkiKQoKCgoKT24gNy8xNC8wNSwgY3VpeWwgPGd1eGlu Z2hhbjE5ODFAaG90bWFpbC5jb20+IHdyb3RlOgo+IM7S1Nqy6dXSdW5pY29kZcqxo6zXysHP1tDQ tLXAo7oKPiDE2tbDuq/K/XVuaWNvZGUoKSDM4bmpwcu3w87Ko6ix4MLrus294sLro6nL+dPQ0tHX orLhtcRVbmljb2RlseDC6wo+ILXEt723qKGjy/zE3Nequ7vW2sv51tzWqrXEIExhd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K R2V0IEZpcmVmb3ghIDxodHRwOi8vd3d3LnNwcmVhZGZpcmVmb3guY29tLz9xPWFmZmlsaWF0ZXMm YW1wO2lkPTY3OTA3JmFtcDt0PTE+Cg==
2005年07月14日 星期四 16:45
OK£¬ÎÒÔÚÊÔÊÔ£¬Ð»Ð»´ó¼Ò£¡£¡ ----- Original Message ----- From: "Qiangning Hong" <hongqn at gmail.com> To: <python-chinese at lists.python.cn> Sent: Thursday, July 14, 2005 3:38 PM Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > ×Ö·û¼¯µÄÃû³ÆÊÇshift_jis£¬Äã¿ÉÒÔÔÚencodings/aliases.pyÖÐÕÒµ½ËüµÄÆäËü±ðÃû¡£ > > ÒÔÇ°¢ÀÚÎʹýÒ»¸öÀàËƵÄÎÊÌ⣬ÏÂÃæÊÇÎÒ¾ÀÕýÁËËûµÄ´úÂëÖ®ºóµÄ´úÂ룬Äã¿ÉÒԲο¼Ò» Ï£¬Ã»ÓÐÓõ½reÄ£¿é¡£ > > def isFullJpHiragana(inputStr): > '''Check the input unicode string is full japanese hiragana or not.''' > > if not inputStr: > return False > > for c in inputStr: > if c < u'\u3040' or c > u'\u309F': > return False > > return True > > if "__main__" == __name__: > print isFullJpHiragana(u"¤¿¤Ê¤«¤µ¤ó¤Ï¤ï¤¿¤·¤Î¤È¤â¤À¤Á¤Ç¤¹") > > > > > On 7/14/05, cuiyl <guxinghan1981 at hotmail.com> wrote: > > ÎÒÔÚ²éÕÒunicodeʱ£¬×ÊÁÏÖÐдµÀ£º > > ÄÚÖú¯Êýunicode() ÌṩÁË·ÃÎÊ£¨±àÂëºÍ½âÂ룩ËùÓÐÒÑ×¢²áµÄUnicode±àÂë > > µÄ·½·¨¡£ËüÄÜת»»ÖÚËùÖÜÖªµÄ Latin-1, ASCII, UTF-8, ºÍ UTF-16¡£ºóÃæ > > µÄÁ½¸ö¿É±ä³¤±àÂë×Ö·û¼¯ÓÃÒ»¸ö»ò¶à¸öbyte´æ´¢Unicode×Ö·û¡£Ä¬ÈϵÄ×Ö·û > > ¼¯ÊÇ ASCII £¬ËüÖ»´¦Àí0µ½127µÄ±àÂ룬¾Ü¾øÆäËüµÄ×Ö·û²¢·µ»ØÒ»¸ö´íÎó¡£ > > µ±Ò»¸öUnicode×Ö·û´®±»´òÓ¡¡¢Ð´ÈëÎļþ»òͨ¹ýstr()ת»¯Ê±£¬ËüÃDZ»Ìæ»» > > ΪĬÈϵıàÂë¡£ > > µ«ÊÇÎÒÊäÈëµÄ×Ö·û±¾ÉíÊÇshift-jis±àÂëµÄ£¬unicodeÖÐÖ§³ÖÕâÖÖ±àÂ뼯Â𣿠> > £¨µ÷ÊÔʱºò»á±¨´í£¬Ã»ÓÐÕÒµ½'shift-jis'±àÂ뼯£© > > > > ----- Original Message ----- > > From: "limodou" <limodou at gmail.com> > > To: <python-chinese at lists.python.cn> > > Sent: Thursday, July 14, 2005 2:02 PM > > Subject: Re: [python-chinese] pythonÕýÔò±í´ïʽ > > > > > > > ½¨ÒéʹÓÃunicodeÀ´´¦Àí¡£ > > > > > > ÔÚ 05-7-14£¬cuiyl<guxinghan1981 at hotmail.com> дµÀ£º > > > > Ç°Ò»ÕóдÁËÒ»¸öÅжÏÈÕÓïÈ«½ÇƬ¼ÙÃûµÄº¯Êý£¬ÈçÏ£º > > > > def checkFullHiragana(content): > > > > import re > > > > content=str(content) > > > > i=0 > > > > while i> > > > if ord(content[i]) & 0x80: > > > > i=i+2 > > > > else: > > > > return False > > > > if > > > > re.search(r'^['+re.escape('¥¢¥¤¥¦¥¨¥ª¥«¥¥¯¥±¥³¥µ¥·¥¹¥»¥½¥¿¥Á¥Ä¥Æ¥È ¥Ê¥Ë > > ¥Ì¥Í¥Î¥Ï¥Ò¥Õ¥Ø¥Û¥Þ¥ß¥à¥á¥â¥ä¥¤¥æ¥¨¥è¥é¥ê¥ë¥ì¥í¥ï¥¤¥¦¥¨¥ò¥ó¥Ã¥¬¥®¥°¥²¥´¥¶ ¥¸¥º > > ¥¼¥¾¥À¥Â¥Å¥Ç¥É¥Ð¥Ó¥Ö¥Ù¥Ü¥Ñ¥Ô¥×¥Ú¥Ý¥ã¥å¥ç¥¡¥£¥§¥¥¥©©`')+']+$',content): > > > > return True > > > > return False > > > > > > > > ÔÚÕâÀï·¢ÏÖÒ»¸öÎÊÌ⣬µ±ÎҰѺº×Ö"½Ç"´«½øÈ¥µÄʱºò£¬¾¹È»·µ»ØÁËTrue£¨Ä¿Ç° Ö»·¢ > > ÏÖÕâÒ»¸öºº×Ö£©£¬¾µ÷ÊÔ£¬Èç¹ûÈ¥µôÁË×Ö·û"¥ê"£¬¾Í»áÒ»ÇÐÕý³££¬ºÃÏñÊÇ"¥ê"ºÍºº ×Ö" > > ½Ç"µÄASCIIÂëµÄ¸ß°ËλÏàͬ£¬²Å»áʹ"½Ç"ͨ¹ýÑéÖ¤£¬ÇëÎʸ÷λ´óÏÀ£¬ÓÐʲôºÃµÄ½â ¾ö·½ > > ·¨£¿Ð»Ð»£¡£¡ > > > > _______________________________________________ > > > > 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 > > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > -- > Qiangning Hong > > I'm usually annoyed by IDEs because, for instance, they don't use VIM > as an editor. Since I'm hooked to that, all IDEs I've used so far have > failed to impress me. > -- Sybren Stuvel @ c.l.python > > Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1> > ---------------------------------------------------------------------------- ---- > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese >
Zeuux © 2025
京ICP备05028076号