Re: [Tutor] Tutor Digest, Vol 104, Issue 69

2012-10-17 Thread Cheng
tutor-requ...@python.org编写: >Send Tutor mailing list submissions to > tutor@python.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/tutor >or, via email, send a message with subject or body 'help' to > tutor-requ...@pyth

[Tutor] google search

2012-07-14 Thread Goog Cheng
Hi, all! I wanna get the number of results for a query term from google , I tried some methods , xgoogle is the commonest way but still doesn't work well (BWT i'm a beginner) , Could you give me some advice or i have to simulate the browser(still unskilled) , I'm pressed for time and to calcul

[Tutor] the regex boundary about chinese word

2012-05-03 Thread goog cheng
Hi, I got this problem : #!python # -*- coding: utf-8 -*- import re p = re.compile(ur'\bc123\b') print '**',p.search('no class c123 at all').group() p = re.compile(ur'\b\u7a0b\u6770\b') print ur'\u7a0b\u6770' print '',p.search(' 程杰 abc'.decode('utf8')) why the \b boundary can't match t

Re: [Tutor] Python Exercise

2010-11-27 Thread Kok Cheng Tan
Hi, Thanks for the feedback. I will add a trial section that doesn't require login so that new visitors are able to give the website a try. Regards, Kok Cheng -- Forwarded message -- From: Date: Sun, Nov 28, 2010 at 2:41 AM Subject: Tutor Digest, Vol 81, Issue 105 To:

[Tutor] Python Exercise

2010-11-27 Thread Kok Cheng Tan
Hi, I created this website for practising python online: http://www.pyschools.com. Hope to gather feedback from people here who are interesting in teaching and learning python. Regards, Kok Cheng ___ Tutor maillist - Tutor@python.org To unsubscribe

[Tutor] Enumeration and constant

2006-05-28 Thread Brendan Cheng
Hi,   I wander how to setup the enumeration type  and constant in Python, which I couldn't find the topic in the help file. I'm using python 2.4.3   please give me an example of it as well     Thanks,     Brendan ___ Tutor maillist - Tutor@python.org

[Tutor] Enumeration and Constant

2006-05-28 Thread Brendan Cheng
Hi,   I wander how to setup the enumeration type  and constant in Python, which I couldn't find the topic in the help file. I'm using python 2.4.3   please give me an example of it as well     Thanks,   Brendan ___ Tutor maillist - Tutor@python.org h