为什么Python的网络浏览器会启动不同的浏览器?

时间:2019-02-22 20:05:09

标签: python-3.x browser

在(python的) webbrowser模块

的帮助下打开以下链接时
Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

url_list = [
    'http://google.com',
    'https://google.com',
    'www.google.com',
    'google.com'
    ]

for url in url_list:
    webbrowser.open(url)
    time.sleep(3)

我注意到了一些奇怪的问题(对我来说): 所有链接均已通过Google Chrome(我的默认浏览器)打开,但最后一个('google.com')-IE进入。

为什么会这样? URL之间有什么区别?如果有人可以帮助我了解该模块的基础流程,请显示

0 个答案:

没有答案
相关问题