gpt4 book ai didi

每次我在编辑器中执行 “run module” 时都会重新启动 Python shell?

转载 作者:行者123 更新时间:2023-12-04 19:02:04 26 4
gpt4 key购买 nike

我在 Ubuntu 上使用 python 2 和
写作时import webbrowser
webbrowser.open("fb.com")
并运行模块,shell 重新启动并且没有任何 react 。这里有什么问题?

最佳答案

我不确定运行模块是什么意思。

如果你只是想打开fb.com,那么试试webbrowser.open('http://fb.com') .给 http://所以它不会尝试使用 file:// 打开或者其他的东西。

关于每次我在编辑器中执行 “run module” 时都会重新启动 Python shell?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37781380/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com