2007年12月30日 星期日 12:24
¸÷λ´óÏÀ£¬ ÎÒÏëÓÃÑÛ¶¯ÒÇÑо¿Óû§Ê¹ÓÃä¯ÀÀÆ÷ÉÏÍøµÄÎÊÌ⡣ϣÍûÇë½ÌÄãһЩ¼¼ÊõÎÊÌâ¡£ÎÒÏëÖªµÀÈçºÎµ÷ÓÃIEѽ£¿ÎÒÏ£ÍûÔÚʵÑé³ÌÐòÔËÐеÄʱºò£¬ÒÀÈ»¿ÉÒÔÏñÕý³£ä¯ÀÀÍøÒ³Ò»ÑùÉÏÍøµÄ¡£²¢ÇÒ £¬ÒªÄܹ»±£´æÍøÖ·¡£Ð»Ð»~~~ Èç¹ûÖªµÀpythonµÄ´úÂëÔõôд£¬¾Í×îºÃÁË¡£ -- Best Regards, He Jibo jibohe2在cyrus.psych.uiuc.edu hejibo在gmail.com --------------------------- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 Tel: 217-244-4461(office) 217-244-6763(lab) Email: hejibo在gmail.com -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071229/5f2ea227/attachment.html
2007年12月30日 星期日 15:13
ûÃ÷°×ÄãÒª×öʲô£¿£¿£¿À´»Ø¿´Á˺ü¸±é£¬¾ÍÊÇ¿´²»Ã÷°×¡£¡£¡£ Èç¹ûÄãÒªÓÃIE´òÒ»¸öURL£¬¿ÉÒÔÓÃos.system »òos.popen»òsubprocessÄ£¿é£¬Ò²¿ÉÒÔÓÃpywin32µÄcreateprocess. Èç¹ûÄãÒªÔÚÄãµÄ³ÌÐòÀïʹÓÃIE¿Ø¼þ£¬wxÓжÔÓ¦¿Ø¼þ¡£ On Dec 30, 2007 12:24 PM, He Jibo <hejibo在gmail.com> wrote: > ¸÷λ´óÏÀ£¬ > > ÎÒÏëÓÃÑÛ¶¯ÒÇÑо¿Óû§Ê¹ÓÃä¯ÀÀÆ÷ÉÏÍøµÄÎÊÌ⡣ϣÍûÇë½ÌÄãһЩ¼¼ÊõÎÊÌâ¡£ÎÒÏëÖªµÀÈçºÎµ÷ÓÃIEѽ£¿ÎÒÏ£ÍûÔÚʵÑé³ÌÐòÔËÐеÄʱºò£¬ÒÀÈ»¿ÉÒÔÏñÕý³£ä¯ÀÀÍøÒ³Ò»ÑùÉÏÍøµÄ¡£²¢ÇÒ > £¬ÒªÄܹ»±£´æÍøÖ·¡£Ð»Ð»~~~ > Èç¹ûÖªµÀpythonµÄ´úÂëÔõôд£¬¾Í×îºÃÁË¡£ > > -- > Best Regards, > > He Jibo > jibohe2在cyrus.psych.uiuc.edu > hejibo在gmail.com > > > --------------------------- > He Jibo > Department of Psychology, > Beckman Institute for Advanced Science and Technology > University of Illinois, Urbana Champaign, > 603 East Daniel St., > Champaign, IL 61820 > Tel: 217-244-4461(office) > 217-244-6763(lab) > Email: hejibo在gmail.com > > _______________________________________________ > 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/20071230/8b044da3/attachment-0001.html
2007年12月30日 星期日 15:44
ллÄúµÄ»Ø¸´¡£ ÎÒÊÇÏëÔÚÓÃPythonдµÄÒ»¸öʵÑé³ÌÐòÖУ¬´ò¿ªie£¬²¢ÇÒ½øÐÐÉÏÍø»î¶¯£¬Í¬Ê±£¬ÎÒ»áÓÃÆäËü·½Ê½¼Ç¼ÉÏÍøµÄÑÛ¶¯ÐÐΪ¡£ ÎÒÊÇÏëÖªµÀÈçºÎÓÃpythonµ÷ÓÃie,ÔÚ´ò¿ªµÄieÖУ¬ÒÀÈ»¿ÉÒÔÊäÈëÎÄ×Ö£¬µã»÷Êó±êµÈ¡£ ÔÚÍøÉÏÕÒÁËһЩ´úÂë¡£¿ÉÊÇËüÖ»ÄÜÒÔÎı¾µÄ·½Ê½ÊÕµ½Ò»Ð©Êý¾Ý£¬²¢Ã»Óдò¿ªÒ»¸öie£¬¿É·ñ·³ÇëÄú½²µÃ¸üÏêϸһµãѽ£¿Ð»Ð» ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄ×ÊÁÏ http://python.cn/pipermail/python-chinese/2006-April/023175.html # -*- 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<http://python.cn/mailman/listinfo/python-chinese>> дµÀ£º >* *>* Âí̤·ÉÑ࣬ÄúºÃ£¡ *>* *>* лл£¬ÕýÊÇÎÒÐèÒªµÄ¡£PYTHONÕæµÄÊÇÇ¿´ó¡£ *>* *>* ÔÚ 2006-03-27 23:15:00 ÄúдµÀ£º *>* >ÔÚ 06-3-27£¬Alan Huang <http://python.cn/mailman/listinfo/python-chinese>> дµÀ£º *>* >> *>* >> Hi, all *>* >> *>* >> ÈçÌâ¡£ *>* >> Èç¹û¿ÉÒÔʵÏÖ£¬¸ü½øÒ»²½£¬ÈçºÎÖ¸¶¨ÓÃijÖÖä¯ÀÀÆ÷´ò¿ªÕâ¸ö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') *>* >´ò¿ª¾ÍÐÐÁË¡£ *>* >__________________________* On Dec 30, 2007 1:13 AM, Í·Ì«ÔÎ <torrycn在gmail.com> wrote: > ûÃ÷°×ÄãÒª×öʲô£¿£¿£¿À´»Ø¿´Á˺ü¸±é£¬¾ÍÊÇ¿´²»Ã÷°×¡£¡£¡£ > > Èç¹ûÄãÒªÓÃIE´òÒ»¸öURL£¬¿ÉÒÔÓÃos.system »òos.popen»òsubprocessÄ£¿é£¬Ò²¿ÉÒÔÓÃpywin32µÄcreateprocess. > > Èç¹ûÄãÒªÔÚÄãµÄ³ÌÐòÀïʹÓÃIE¿Ø¼þ£¬wxÓжÔÓ¦¿Ø¼þ¡£ > > On Dec 30, 2007 12:24 PM, He Jibo < hejibo在gmail.com> wrote: > > > ¸÷λ´óÏÀ£¬ > > > > ÎÒÏëÓÃÑÛ¶¯ÒÇÑо¿Óû§Ê¹ÓÃä¯ÀÀÆ÷ÉÏÍøµÄÎÊÌ⡣ϣÍûÇë½ÌÄãһЩ¼¼ÊõÎÊÌâ¡£ÎÒÏëÖªµÀÈçºÎµ÷ÓÃIEѽ£¿ÎÒÏ£ÍûÔÚʵÑé³ÌÐòÔËÐеÄʱºò£¬ÒÀÈ»¿ÉÒÔÏñÕý³£ä¯ÀÀÍøÒ³Ò»ÑùÉÏÍøµÄ¡£²¢ÇÒ > > £¬ÒªÄܹ»±£´æÍøÖ·¡£Ð»Ð»~~~ > > Èç¹ûÖªµÀpythonµÄ´úÂëÔõôд£¬¾Í×îºÃÁË¡£ > > > > -- > > Best Regards, > > > > He Jibo > > jibohe2在cyrus.psych.uiuc.edu > > hejibo在gmail.com > > > > > > --------------------------- > > He Jibo > > Department of Psychology, > > Beckman Institute for Advanced Science and Technology > > University of Illinois, Urbana Champaign, > > 603 East Daniel St., > > Champaign, IL 61820 > > Tel: 217-244-4461(office) > > 217-244-6763(lab) > > Email: hejibo在gmail.com > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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 > -- Best Regards, He Jibo jibohe2在cyrus.psych.uiuc.edu hejibo在gmail.com --------------------------- He Jibo Department of Psychology, Beckman Institute for Advanced Science and Technology University of Illinois, Urbana Champaign, 603 East Daniel St., Champaign, IL 61820 Tel: 217-244-4461(office) 217-244-6763(lab) Email: hejibo在gmail.com -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071230/4bfe8db1/attachment.htm
2007年12月30日 星期日 20:42
Äã¿ÉÒÔÊÔÊÔpyime,http://pamie.sourceforge.net/ import cPAMIE ie= cPAMIE.PAMIE() # Start Script: ie.Navigate ('http://pamie.sourceforge.net/pamieform.html') ie.SetTextBox('John','firstname',0) ie.SetTextBox('Doe','lastname',0) ie.SetTextBox('1020 State Street','Addline1',0) ie.SetTextBox('Suite #16','Addline2',0) ie.SetTextBox('San Mateo','city',0) ie.SetListBox('CA','state',0) ie.SetTextBox('90210','zip',0) ie.ClickButton('Submit',0) ÔÚ07-12-30£¬He Jibo <hejibo在gmail.com> дµÀ£º > > ллÄúµÄ»Ø¸´¡£ > ÎÒÊÇÏëÔÚÓÃPythonдµÄÒ»¸öʵÑé³ÌÐòÖУ¬´ò¿ªie£¬²¢ÇÒ½øÐÐÉÏÍø»î¶¯£¬Í¬Ê±£¬ÎÒ»áÓÃÆäËü·½Ê½¼Ç¼ÉÏÍøµÄÑÛ¶¯ÐÐΪ¡£ > ÎÒÊÇÏëÖªµÀÈçºÎÓÃpythonµ÷ÓÃie,ÔÚ´ò¿ªµÄieÖУ¬ÒÀÈ»¿ÉÒÔÊäÈëÎÄ×Ö£¬µã»÷Êó±êµÈ¡£ > ÔÚÍøÉÏÕÒÁËһЩ´úÂë¡£¿ÉÊÇËüÖ»ÄÜÒÔÎı¾µÄ·½Ê½ÊÕµ½Ò»Ð©Êý¾Ý£¬²¢Ã»Óдò¿ªÒ»¸öie£¬¿É·ñ·³ÇëÄú½²µÃ¸üÏêϸһµãѽ£¿Ð»Ð» > > ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄ×ÊÁÏ > http://python.cn/pipermail/python-chinese/2006-April/023175.html > > # -*- coding: cp936 -*- > import urllib,httplib,time > class tq: > def __init__(self): > self.headers="" > self.conn= httplib.HTTPConnection(" weather.tq121.com.cn:80<http://weather.tq121.com.cn/> > ")#ÕâÀïÊÇ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<http://python.cn/mailman/listinfo/python-chinese>> > дµÀ£º > >* > *> *Âí̤·ÉÑ࣬ÄúºÃ£¡ > *>* > *>* лл£¬ÕýÊÇÎÒÐèÒªµÄ¡£PYTHONÕæµÄÊÇÇ¿´ó¡£ > *>* > *>* ÔÚ 2006-03-27 23:15:00 ÄúдµÀ£º > *>* >ÔÚ 06-3-27£¬Alan Huang< hygool at gmail.com<http://python.cn/mailman/listinfo/python-chinese>> > дµÀ£º > *>* >> > *>* >> Hi, all > *>* >> > *>* >> ÈçÌâ¡£ > *>* >> Èç¹û¿ÉÒÔʵÏÖ£¬¸ü½øÒ»²½£¬ÈçºÎÖ¸¶¨ÓÃijÖÖä¯ÀÀÆ÷´ò¿ªÕâ¸ö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') > *>* >´ò¿ª¾ÍÐÐÁË¡£ > *>* >__________________________* > > On Dec 30, 2007 1:13 AM, Í·Ì«ÔÎ <torrycn在gmail.com> wrote: > > > ûÃ÷°×ÄãÒª×öʲô£¿£¿£¿À´»Ø¿´Á˺ü¸±é£¬¾ÍÊÇ¿´²»Ã÷°×¡£¡£¡£ > > > > Èç¹ûÄãÒªÓÃIE´òÒ»¸öURL£¬¿ÉÒÔÓÃos.system »òos.popen»òsubprocessÄ£¿é£¬Ò²¿ÉÒÔÓÃpywin32µÄcreateprocess. > > > > Èç¹ûÄãÒªÔÚÄãµÄ³ÌÐòÀïʹÓÃIE¿Ø¼þ£¬wxÓжÔÓ¦¿Ø¼þ¡£ > > > > On Dec 30, 2007 12:24 PM, He Jibo < hejibo在gmail.com> wrote: > > > > > > > ¸÷λ´óÏÀ£¬ > > > > > > ÎÒÏëÓÃÑÛ¶¯ÒÇÑо¿Óû§Ê¹ÓÃä¯ÀÀÆ÷ÉÏÍøµÄÎÊÌ⡣ϣÍûÇë½ÌÄãһЩ¼¼ÊõÎÊÌâ¡£ÎÒÏëÖªµÀÈçºÎµ÷ÓÃIEѽ£¿ÎÒÏ£ÍûÔÚʵÑé³ÌÐòÔËÐеÄʱºò£¬ÒÀÈ»¿ÉÒÔÏñÕý³£ä¯ÀÀÍøÒ³Ò»ÑùÉÏÍøµÄ¡£²¢ÇÒ > > > £¬ÒªÄܹ»±£´æÍøÖ·¡£Ð»Ð»~~~ > > > Èç¹ûÖªµÀpythonµÄ´úÂëÔõôд£¬¾Í×îºÃÁË¡£ > > > > > > -- > > > Best Regards, > > > > > > He Jibo > > > jibohe2在cyrus.psych.uiuc.edu > > > hejibo在gmail.com > > > > > > > > > --------------------------- > > > He Jibo > > > Department of Psychology, > > > Beckman Institute for Advanced Science and Technology > > > University of Illinois, Urbana Champaign, > > > 603 East Daniel St., > > > Champaign, IL 61820 > > > Tel: 217-244-4461(office) > > > 217-244-6763(lab) > > > Email: hejibo在gmail.com > > > > > > _______________________________________________ > > > 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 > > > > > > > > > _______________________________________________ > > 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 > > > > > > -- > Best Regards, > > He Jibo > jibohe2在cyrus.psych.uiuc.edu > hejibo在gmail.com > > > --------------------------- > He Jibo > Department of Psychology, > Beckman Institute for Advanced Science and Technology > University of Illinois, Urbana Champaign, > 603 East Daniel St., > Champaign, IL 61820 > Tel: 217-244-4461(office) > 217-244-6763(lab) > Email: hejibo在gmail.com > > _______________________________________________ > 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/20071230/aa353915/attachment.html
Zeuux © 2025
京ICP备05028076号