why can't open the file with browser?

Skip Montanaro skip at pobox.com
Wed Sep 24 07:31:20 EDT 2014


Maybe it's supposed to be

file://localhost/test.html

? Just a guess, as I don't use Windows.

Skip


On Wed, Sep 24, 2014 at 4:32 AM, luofeiyu <elearn2014 at gmail.com> wrote:

>
> import webbrowser
> webbrowser.open('f:\\test.html')
>
> why the file f:\\test.html is opened by notepad ,not by my firefox or chrome?
>
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140924/0f10e0f5/attachment.html>


More information about the Python-list mailing list