timmy revised this gist 9 months ago. Go to revision
1 file changed, 7 insertions
open_browser.py(file created)
| @@ -0,0 +1,7 @@ | |||
| 1 | + | import webbrowser | |
| 2 | + | ||
| 3 | + | # 指定要開啟的網址 | |
| 4 | + | url = "https://www.python.org" | |
| 5 | + | ||
| 6 | + | # 在預設瀏覽器中開啟網址 | |
| 7 | + | webbrowser.open(url) | |
Newer
Older