2006年04月03日 星期一 01:44
# -*- coding: cp936 -*- import urllib,httplib,time class tq: def __init__(self): self.headers="" self.conn= httplib.HTTPConnection("weather.tq121.com.cn:80")#这里是tq url def GetInfo(self): self.conn.request("GET","/mapanel/index1.php?city=襄樊", self.headers) response = self.conn.getresponse() print response.read() test = tq() test.GetInfo() 在06-3-28,cry <zyqmail at tom.com> 写道: > > 马踏飞燕,您好! > > 谢谢,正是我需要的。PYTHON真的是强大。 > > 在 2006-03-27 23:15:00 您写道: > >在 06-3-27,Alan Huang<hygool at gmail.com> 写道: > >> > >> Hi, all > >> > >> 如题。 > >> 如果可以实现,更进一步,如何指定用某种浏览器打开这个URL,比如firefox / tencent TT; > >> > >> 谢谢赐教! > >> > > > >调用系统缺省浏览器打开URL地址,如 webbrowser.open('http://www.google.com') > > > >一般的浏览器程序都支持命令行参数的。 > >例如IE: > >C:\Program Files\Internet Explorer>iexplore http://www.google.com > >就能打开ie,并且go到http://www.google.com > > > >用 > >os.system('C:/Program Files/Internet Explorer/iexplore > http://www.google.com') > >打开就行了。 > >_______________________________________________ > >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 > > 致 > 礼! > > cry > zyqmail at tom.com > > > _______________________________________________ > 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 > -- QQ: 2667799 MSN Messenger: xds2000ATmsn.com E-mail: xiaodsATgmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060403/c3f15151/attachment.html
Zeuux © 2025
京ICP备05028076号