Python 网络浏览器&x27;未找到目录';错误

Python 网络浏览器&x27;未找到目录';错误,python,python-3.x,chromium,python-webbrowser,Python,Python 3.x,Chromium,Python Webbrowser,python上的webbrowser模块再次出现错误。每当我运行这个程序时,都会出现多个错误 import webbrowser google_urls = ["www.gmail.com", "www.youtube.com"] def open_tabs(url_lists): for url in url_lists: webbrowser.open_new_tab(url) def main(): webbrowser.open("www.google.c

python上的webbrowser模块再次出现错误。每当我运行这个程序时,都会出现多个错误

import webbrowser
google_urls = ["www.gmail.com", "www.youtube.com"]
def open_tabs(url_lists):
    for url in url_lists:
        webbrowser.open_new_tab(url)
def main():
    webbrowser.open("www.google.com", new=2, autoraise=False)
    open_tabs(google_urls)

main()
以下是我得到的错误: /home/garion/Documents/www.youtube.com:没有这样的文件或目录(还有两个相同的,除了www.google.com和www.gmail.com)

我正在使用lubuntu、python IDLE 3.5和Chromium

webbrowser.open('https://www.youtube.com')

使用前面的https://按钮。

参见下面的答案。这就是问题所在