Python论坛  - 讨论区

标题:[python-chinese] python怎样实现下载html页面

2007年12月03日 星期一 09:09

丁亮 bluker2599在gmail.com
星期一 十二月 3 09:09:40 HKT 2007

ÏëÒª×öµ½ÈçgoogleÓʼþÖеÄÄÇÑùÏÂÔظ½¼þÖÐÊÇhtmlÒ²¿ÉÒÔÏÂÔضø²»ÊÇÖ±½Ó´ò¿ª£¬Ôõô×ö£¿´«µÝµÄÎļþͷд·¨²»Í¬£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/57047412/attachment.html 

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

2007年12月03日 星期一 09:25

机器人 houqinglong在gmail.com
星期一 十二月 3 09:25:29 HKT 2007

ÆÚ´ýÖС£¡£¡£¡£¡£

ÔÚ07-12-3£¬¶¡ÁÁ <bluker2599在gmail.com> дµÀ£º
>
> ÏëÒª×öµ½ÈçgoogleÓʼþÖеÄÄÇÑùÏÂÔظ½¼þÖÐÊÇhtmlÒ²¿ÉÒÔÏÂÔضø²»ÊÇÖ±½Ó´ò¿ª£¬Ôõô×ö£¿´«µÝµÄÎļþͷд·¨²»Í¬£¿
> _______________________________________________
> 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
>



-- 
It's doesn't matter who wins, just try you best
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/d451d7d0/attachment.html 

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

2007年12月03日 星期一 09:38

东子/hydon hydonlee在gmail.com
星期一 十二月 3 09:38:26 HKT 2007

¸øÄãÒ»¸öaspµÄ´úÂë°É...ÊÇÒªÐ޸ķµ»ØµÄÀàÐÍ::

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936" %>
<%
//....ÒÔÉÏÊ¡È¥N¶à...
var fname = "»áÔ±_" + d.getFullYear() + "_" + (d.getMonth()+1) + "_" +
d.getDate() + ".xls";
Response.buffer = true;
Response.Charset = "gb2312";
Response.ContentType = "APPLICATION/OCTET-STREAM";
Response.AddHeader("Content-Disposition","attachment;filename=" + fname)
var s = "»áÔ±Ãû\tµç×ÓÓʼþ\tÕæʵÐÕÃû\tÁªÏµµç»°\tÊÖ»ú\tÏêϸµØÖ·\tÓʱà\tÉí·ÝÖ¤ºÅ\tÉúÈÕ\t¼¶±ð\tµ±Ç°ºìÀû\t";
for (k in members ){
    var m = members[k];
    s += "\n"
    s += m.username + "\t";
    s += m.email + "\t";
    s += m.realname + "\t";
    s += m.tel + "\t";
    s += m.mobile + "\t";
    s += m.address + "\t";
    s += m.zip + "\t";
    s += m.cardid + "\t";
    s += m.birthday + "\t";
    s += getMemberGrade(m.grade) + "\t";
    s += m.hl + "\t";

    //s+= "\n";
}
s+=""

Response.Write(s);
Response.End();
%>


ÔÚ07-12-3£¬»úÆ÷ÈË <houqinglong在gmail.com> дµÀ£º
>
> ÆÚ´ýÖС£¡£¡£¡£¡£
>
> ÔÚ07-12-3£¬¶¡ÁÁ <bluker2599在gmail.com> дµÀ£º
> >
> > ÏëÒª×öµ½ÈçgoogleÓʼþÖеÄÄÇÑùÏÂÔظ½¼þÖÐÊÇhtmlÒ²¿ÉÒÔÏÂÔضø²»ÊÇÖ±½Ó´ò¿ª£¬Ôõô×ö£¿´«µÝµÄÎļþͷд·¨²»Í¬£¿
> > _______________________________________________
> > 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
> >
>
>
>
> --
> It's doesn't matter who wins, just try you best
> _______________________________________________
> 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/20071203/3721e572/attachment.htm 

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

2007年12月03日 星期一 10:24

丁亮 bluker2599在gmail.com
星期一 十二月 3 10:24:18 HKT 2007

лл£¬ÄãÕâÑùÉú³ÉµÄxlsÎļþµÄÏÂÔØ£¬Èç¹ûÊǺó׺ÊÇhtmlºÃÏñ²»Ðаɣ¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/5066a77a/attachment.html 

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

2007年12月03日 星期一 18:06

Fluke fluke.l在gmail.com
星期一 十二月 3 18:06:16 HKT 2007

On Dec 3, 2007 10:24 AM, ¶¡ÁÁ <bluker2599在gmail.com> wrote:

> лл£¬ÄãÕâÑùÉú³ÉµÄxlsÎļþµÄÏÂÔØ£¬Èç¹ûÊǺó׺ÊÇhtmlºÃÏñ²»Ðаɣ¿


Òª¿´ä¯ÀÀÆ÷ÁË£¬Ò»°ã¶¼ÊÇÓÐÏÞ°´ÕÕHTTPÍ·ÀïÃæ±êÃ÷µÄÀàÐÍÀ´È·¶¨´«ÊäµÄÀàÐÍ¡£

Èç¹ûä¯ÀÀÆ÷ÊÇÓÅÏȸù¾ÝhttpÍ·ÀïÃæmimeÀàÐÍÅжÏÁ˲»ÊÇhtml¶øÊÇÊý¾ÝÁ÷µÄ»°£¬×ÔÈ»»á°´ÕÕContent-Disposition¶ÎÀïÃæÖ¸¶¨µÄÎļþÃûÀ´±£´æ¡£



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



-- 
Yours,
 fluke
fluke在sfcube.net
http://blog.ospattern.net
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071203/8377dfa8/attachment.htm 

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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号