Python论坛  - 讨论区

标题:[python-chinese] : webbrowser

2004年03月12日 星期五 11:52

zhao bear_sh at eastday.com
Fri Mar 12 11:52:47 HKT 2004

[python-chinese], 各位好!

运行错误:
	import webbrowser
	webbrowser.open_new("http://www.sina.com")

错误信息:

Traceback (most recent call last):
  File "test.py", line 2, in ?
    webbrowser.open_new("http://www.sina.com")
  File "d:\python23\lib\webbrowser.py", line 46, in open_new
    get().open(url, 1)
  File "d:\python23\lib\webbrowser.py", line 250, in open
    os.startfile(url)
WindowsError: [Errno 3] : 'http://www.sina.com'


似乎是os.startfile不能正常的调用url,webbrowser.py有问题??

        致
礼!
 
				 
        zhao
        bear_sh at eastday.com
          2004-03-12

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fox.gif
Type: image/gif
Size: 9519 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20040312/bedb8f3d/fox.gif

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

2004年03月12日 星期五 11:57

Jacob Fan jacob at exoweb.net
Fri Mar 12 11:57:06 HKT 2004

http://www.uselesspython.com/
-------
Explicit is better than implicit ... 


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

2004年03月12日 星期五 12:03

Jacob Fan jacob at exoweb.net
Fri Mar 12 12:03:29 HKT 2004

也许是你的windows有问题。你可以双击一个url的快捷方式打开一个网站么?

-------
Explicit is better than implicit ...

-----Original Message-----
From: zhao [mailto:bear_sh at eastday.com]
Sent: 2004年3月12日 11:53
To: python-chinese
Subject: [python-chinese] : webbrowser


[python-chinese], 各位好!

运行错误:
        import webbrowser
        webbrowser.open_new("http://www.sina.com")

错误信息:

Traceback (most recent call last):
  File "test.py", line 2, in ?
    webbrowser.open_new("http://www.sina.com")
  File "d:\python23\lib\webbrowser.py", line 46, in open_new
    get().open(url, 1)
  File "d:\python23\lib\webbrowser.py", line 250, in open
    os.startfile(url)
WindowsError: [Errno 3] : 'http://www.sina.com'


似乎是os.startfile不能正常的调用url,webbrowser.py有问题??

        致
礼!

                               
        zhao
        bear_sh at eastday.com
          2004-03-12 


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

2004年03月12日 星期五 12:16

Zoom.Quiet zoomq at infopro.cn
Fri Mar 12 12:16:23 HKT 2004

Hello Jacob,

http://py.vaults.ca/apyllo.py?a=tree

ϑ¿ß£¡
ËùÓеÄPython Ó¦Óö¼ÔÚÁË°É£¡

=== [ 11:57 ; 04-03-12 ] you wrote:


JF> http://www.uselesspython.com/
JF> -------
JF> Explicit is better than implicit ... 
JF> _______________________________________________
JF> python-chinese list
JF> python-chinese at lists.python.cn
JF> http://python.cn/mailman/listinfo/python-chinese

=== === === === === === === === === === 

-- 
Best regards,
 Zoom.Quiet                            

 /=======================================\
]Time is unimportant, only life important![
 \=======================================/



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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号