Webbrowser“找不到目录”

2024-03-28 23:54:13 发布

您现在位置:Python中文网/ 问答频道 /正文

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()

以下是我遇到的错误: /家庭/家庭/文件/www.youtube.com:没有这样的文件或目录(也有两个以上,除了www.google.com以及www.gmail.com)你知道吗

我正在使用lubuntu、python IDLE 3.5和Chromium。你知道吗


Tags: comurlnewyoutubemaindefwww错误