Article View: cn.comp.lang.asp
Article #86Re: ����--һ��asp���
From: �dz�ǰ
Date: Thu, 11 Nov 2004 05:14
Date: Thu, 11 Nov 2004 05:14
56 lines
3193 bytes
3193 bytes
�������Ҫ����asp
python��
��д�������Ҳ����̫��:(
�鷳��
On Thu, 11 Nov 2004 01:47:10 +0800, NewBlue <NewBlue@yaako.com> wrote:
--
>
>�Ҷ�ASP���죬�����python������Ҫ�Ĺ�����pythonʵ���ˣ�����߲��Ե���ͨ��
>
>import re
>html = """links list"""
>html = re.sub ("\n","",html)
>html = re.sub ("<br>","<br>\n",html)
>pool = html.split ("<br>\n")
>for url in pool:
> match = re.match
> (".*(http://www.arongsoft.net/down.asp\?id=\d*&no=\d*).*>(.*)</a>.*",
> html);
> if match:
> print ">>"+ match.group(2).__str__()+"\n\t==>"+match.group(1).__str__ ()
>
>ʵ�ֵñȽϲ������һ������ƥ����ɣ���Ϊ��Ҫ�����ȡ�������б�����↑
>ʼ������Ž�������������ۡ���ʵǰЩ���Ӿ������ץ����Ͱ������һЩ��
>������������֮���Ǻ����⣬��Ϊ��Ҫ������ҳ�棬�Ƚ��鷳��
>
>����python�и�html��������ģ�飬���ԺܺõĽ��������⣬���ǵ��Ե�ʱ��û
>ͨ��ֻ���Լ�д��������Ϊ��д�ϵ�һ��bug���ѡ�����������->��һ�����ˣ�
>���Ǻܶ��⡣
>
>Ҫȥ˯���ˡ�
>
>[newblue@localhost ~]#cat �dz�ǰ
>
>> ��Ҫʵ��һ�ι���:
>>
>> ����һ��ԭʼ���ַ�����:(û���Զ�����,��һ�����е�)
-------------The End-------------
�dz�ǰ;
��
(��)
����
Msn Messenger: duchaoqian �� m s n �� c o m
HomePage : http://duchaoqian.yeah.net
Blog : http://duchaoqian.126.com
"�Ѵ�ѧ���������Ͻ�����,���Ͽ���,����˵:�����ഺ,���߰�~
��ʱ�Ҹо����������ϴ�ѧ,���Ǵ�ѧ������."......from mop
Technical Details
Message-ID:
<41aff4e4.22279456@News.yaako.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.glorb.com!news3.optonline.net!news.bylinux.net!news.cn99.com!news.yaako.com!not-for-mailReferences:
<419730ef.19312790@News.yaako.com> <m3u0rxr3z5.fsf@yaako.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107c7f,5fca0a771516044b X-Google-Attributes: gid107c7f,public X-Google-Language: Chinese,GB Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.glorb.com!news3.optonline.net!news.bylinux.net!news.cn99.com!news.yaako.com!not-for-mail From: �dz�ǰ <duchaoqian@duchaoqian.duchaoqian> Newsgroups: cn.comp.lang.asp,cn.comp,cn.fan Subject: Re: ����--һ��asp��� Date: Thu, 11 Nov 2004 13:14:55 +0800 Organization: Bentium Ltd. (CN99) Lines: 56 Message-ID: <41aff4e4.22279456@News.yaako.com> References: <419730ef.19312790@News.yaako.com> <m3u0rxr3z5.fsf@yaako.com> NNTP-Posting-Host: 61.168.42.66 Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit X-Trace: news.yaako.com 1100150087 5915 61.168.42.66 (11 Nov 2004 05:14:47 GMT) X-Complaints-To: usenet@news.yaako.com NNTP-Posting-Date: Thu, 11 Nov 2004 05:14:47 +0000 (UTC) Summary: this is a message from cn.* newsgroups X-Newsreader: Forte Agent 1.8/32.548